raoul2000/yii2-fastlivefilter-widget

Wrapper around the Fast Live Filter JQuery plugin

Maintainers

Package info

github.com/raoul2000/yii2-fastlivefilter-widget

Language:JavaScript

Type:yii2-extension

pkg:composer/raoul2000/yii2-fastlivefilter-widget

Statistics

Installs: 9 381

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

1.0.0 2014-07-04 12:56 UTC

This package is not auto-updated.

Last update: 2026-03-10 14:53:03 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.