brussens / yii2-bootstrap-select
Bootstrap select widget for Yii2
Installs: 27 219
Dependents: 0
Suggesters: 0
Security: 0
Stars: 8
Watchers: 2
Forks: 7
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/bootstrap-select: 1.7.5
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2024-12-15 02:42:08 UTC
README
#Bootstrap select widget for Yii2
##Install Either run
php composer.phar require --prefer-dist brussens/yii2-bootstrap-select "*"
or add
"brussens/yii2-bootstrap-select": "*"
to the require section of your composer.json
file.
##Options
- clientOptions - options of plugin. See https://silviomoreto.github.io/bootstrap-select/
##Usage
use brussens\bootstrap\select\Widget as Select; echo $form->field($model, 'subject')->widget(Select::className(), [ 'options' => ['data-live-search' => 'true'], 'items' => [ '1' => 'Item 1', '2' => 'Item 2', '3' => 'Item 3', '4' => 'Item 4', '5' => 'Item 5', ] ]);
##Profit