yiier / yii2-bootstrap4-select
Yii2 wrapper for boostrap4-select.
Installs: 48
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=7.0
- bower-asset/bootstrap-select: ^1.13
- yiisoft/yii2: ~2.0.0
- yiisoft/yii2-bootstrap4: ^2.0
README
Yii2 wrapper for boostrap4-select.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yiier/yii2-bootstrap4-select "*"
or add
"yiier/yii2-bootstrap4-select": "*"
to the require section of your composer.json
file.
Demo
You can view demo and examples here.
Usage
<?php use yiier\bootstrap4\select\SelectPicker; echo $form->field($model, 'attribute')->widget(SelectPicker::class, [ 'items' => ArrayHelper::map(User::find()->all(), 'id', 'email'), 'options' => [ 'prompt' => '', 'multiple' => true, ], 'clientOptions' => [ 'liveSearch' => true, 'noneSelectedText' => '', 'styleBase' => 'form-control', 'style' => '', ], 'clientEvents' => [], ]) ?>