fedemotta/yii2-bootstrap-list-filter Bootstap list filter widget for Yii2

extensionfilterbootstrapsearchlist

Yii2 bootstrap list filter

Bootstrap list filter widget for Yii2

Latest Stable Version Total Downloads Latest Unstable Version License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist fedemotta/yii2-bootstrap-list-filter "*"

or add

"fedemotta/yii2-bootstrap-list-filter": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<form role="form">
    <div class="form-group">
    <?=\fedemotta\bootstraplistfilter\BootstrapListFilter::widget(['list_selector'=>'#searchlist','options'=>['class'=>'form-control', 'placeholder'=>'Search...'], 'clientOptions'=>['itemChild'=>'span']]); ?>
    </div>
    <div id="searchlist" class="list-group">
        <a class="list-group-item" href="aquamarine.html"><span>aquamarine</span></a>
        <a class="list-group-item" href="blue.html"><span>blue</span></a>
        <a class="list-group-item" href="cyan.html"><span>cyan</span></a>
    </div>
</form>

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • v1.110 September 2016
  • v1.022 September 2015

Comments



v1.1 is the latest of 2 releases



MIT license
Stats
7 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
1155 total downloads