latest updates @APR 20, 2022
This commit is contained in:
parent
90b15f5e00
commit
a0bdbc7c55
1657 changed files with 301942 additions and 0 deletions
45
src/README.md
Normal file
45
src/README.md
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
# fSelect
|
||||
A jQuery select box replacement library ([live demo](https://facetwp.com/wp-content/plugins/facetwp/assets/vendor/fSelect/test.html))
|
||||
|
||||
<img src="http://i.imgur.com/yXOv8DG.png" width="208" height="223" />
|
||||
|
||||
### Usage
|
||||
|
||||
```javascript
|
||||
$('.your-select').fSelect();
|
||||
```
|
||||
|
||||
### Available options
|
||||
|
||||
```js
|
||||
$('.your-select').fSelect({
|
||||
placeholder: 'Select some options',
|
||||
numDisplayed: 3,
|
||||
overflowText: '{n} selected',
|
||||
noResultsText: 'No results found',
|
||||
searchText: 'Search',
|
||||
showSearch: true
|
||||
});
|
||||
```
|
||||
|
||||
* **placeholder** (str) - the default placeholder text
|
||||
* **numDisplayed** (int) - the number of values to show before switching to the `overflowText`
|
||||
* **overflowText** (str) - the text to show after exceeding the `numDisplayed` limit
|
||||
* **noResultsText** (str) - the text to show if no choices exist (or an empty string)
|
||||
* **searchText** (str) - the search box placeholder text
|
||||
* **showSearch** (bool) - show the search box?
|
||||
|
||||
### Methods
|
||||
|
||||
```js
|
||||
$('.your-select').fSelect('reload');
|
||||
$('.your-select').fSelect('destroy');
|
||||
```
|
||||
|
||||
### Single vs. multi-select
|
||||
|
||||
Add the `multiple` attribute to your `<select>` to enable multi-select:
|
||||
|
||||
```html
|
||||
<select class="your-select-box" multiple="multiple">
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue