Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/usefulweb/yii-bootstrap-multiselect
- Owner: UsefulWeb
- License: mit
- Created: 2015-04-26T07:50:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-26T08:21:34.000Z (over 9 years ago)
- Last Synced: 2024-04-11T06:27:46.354Z (9 months ago)
- Language: PHP
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii-bootstrap-multiselect
Simple asset for davidstutz/bootstrap-multiselectExample :
```
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' => '',
)
),
));
?>
```