https://github.com/yiier/yii2-bootstrap4-select
Bootstrap4 select widget for Yii2
https://github.com/yiier/yii2-bootstrap4-select
Last synced: 3 months ago
JSON representation
Bootstrap4 select widget for Yii2
- Host: GitHub
- URL: https://github.com/yiier/yii2-bootstrap4-select
- Owner: yiier
- Created: 2021-07-05T03:13:29.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-05T07:48:09.000Z (almost 4 years ago)
- Last Synced: 2024-04-14T00:35:00.767Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Bootstrap4 select widget for Yii2
=================================
Yii2 wrapper for boostrap4-select.[](https://packagist.org/packages/yiier/yii2-bootstrap4-select)
[](https://packagist.org/packages/yiier/yii2-bootstrap4-select)
[](https://packagist.org/packages/yiier/yii2-bootstrap4-select)
[](https://packagist.org/packages/yiier/yii2-bootstrap4-select)Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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](https://developer.snapappointments.com/bootstrap-select/examples/).
Usage
--------------```php
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' => [],
]) ?>
```Credits
--------[romeyk/yii2-bootstrap-select](https://github.com/romeyk/yii2-bootstrap-select)