raoul2000 / yii2-fastlivefilter-widget
Wrapper around the Fast Live Filter JQuery plugin
Installs: 7 793
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 4
Forks: 1
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-12-17 08:32:13 UTC
README
Wrapper around the jQuery Fast Live Filter plugin.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist raoul2000/yii2-fastlivefilter-widget "*"
or add
"raoul2000/yii2-fastlivefilter-widget": "*"
to the require section of your composer.json
file.
Usage
This is an example no how to use this extension once it is installed.
First let's create our HTML list and the filter input control :
<input type="text" id="countryLivefilter"/> <ul id="countryList"> <li>France</li> <li>Allemagne</li> <li>Italie</li> <li>Espagne</li> <li>Belgique</li> </ul>
Finally create the Fast Live filter widget :
<?= raoul2000\widget\fastlivefilter\FastLiveFilter::widget([ 'inputSelector' => '#countryLivefilter', 'listSelector' => '#countryList' ]) ?>
For more information on the plugin options, please refer to fastlivefilter@github.
License
yii2-fastlivefilter-widget is released under the BSD 3-Clause License. See the bundled LICENSE.md
for details.