Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/usefulweb/yii-bootstrap-multiselect

Simple asset for davidstutz/bootstrap-multiselect
https://github.com/usefulweb/yii-bootstrap-multiselect

Last synced: about 2 months ago
JSON representation

Simple asset for davidstutz/bootstrap-multiselect

Awesome Lists containing this project

README

        

# yii-bootstrap-multiselect
Simple asset for davidstutz/bootstrap-multiselect

Example :

```
widget('path.to.plugin',array(
// 'name' or 'attribute' and 'model'
'name' => $name,
'value' => $model->value,
// availiable options
'data' => $data,
'htmlOptions' => array(
'class' => 'col-sm-5 form-control',
// if you need multiple
'multiple' => true,
),
'pluginOptions' => array(
// part of plugin options, you can see all at https://github.com/davidstutz/bootstrap-multiselect
'filterPlaceholder' => 'Поиск',
'maxHeight' => 300,
'enableFiltering' => true,
'includeFilterClearBtn' => true,
'includeSelectAllOption' => true,
'selectAllText' => 'Clear all',
'allSelectedText' => 'All items have been selected',
'nonSelectedText' => 'Select items',
'templates' => array(
'filter' => '

  • ',
    'filterClearBtn' => '',
    )
    ),
    ));
    ?>
    ```