yii2-bootstrap-list-filter Yii2 bootstrap list filter

  1. Installation
  2. Usage
  3. Resources

Bootstrap list filter widget for Yii2

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

<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>

Resources

0 0
2 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: fedemotta
Created on: Sep 22, 2015
Last updated: 2 years ago

Related Extensions