Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
50 lines
819 B
Markdown
50 lines
819 B
Markdown
# select
|
|
|
|
[](https://travis-ci.org/zenorocha/select)
|
|
|
|
Programmatically select the text of a HTML element.
|
|
|
|
## Install
|
|
|
|
You can get it on npm.
|
|
|
|
```
|
|
npm install select --save
|
|
```
|
|
|
|
Or bower, too.
|
|
|
|
```
|
|
bower install select --save
|
|
```
|
|
|
|
If you're not into package management, just [download a ZIP](https://github.com/zenorocha/select/archive/master.zip) file.
|
|
|
|
## Usage
|
|
|
|
### Standalone
|
|
|
|
```html
|
|
<script src="dist/select.js"></script>
|
|
```
|
|
|
|
```js
|
|
var input = document.querySelector('input');
|
|
var result = select(input);
|
|
```
|
|
|
|
### Browserify
|
|
|
|
```js
|
|
var select = require('select');
|
|
```
|
|
|
|
```js
|
|
var input = document.querySelector('input');
|
|
var result = select(input);
|
|
```
|
|
|
|
## License
|
|
|
|
[MIT License](http://zenorocha.mit-license.org/) © Zeno Rocha
|