File tree Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Expand file tree Collapse file tree 1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change 1- # yii2-multiple-select
1+ # yii2-multiple-select
2+ Installation
3+ ------------
4+
5+ The preferred way to install this extension is through [ composer] ( http://getcomposer.org/download/ ) .
6+
7+ Either run
8+
9+ ```
10+ php composer.phar require muhiddingithub/yii2-multiple-select "dev-master"
11+ ```
12+
13+ or add
14+
15+ ```
16+ "muhiddingithub/yii2-multiple-select": "dev-master"
17+ ```
18+
19+ to the require section of your ` composer.json ` file.
20+
21+ Usage
22+ -----
23+
24+
25+ ``` php
26+ echo $form->field($model, 'attribute')->widget(\muhiddin\select\MultiSelect::className(), [
27+ 'data' => $dataList,
28+ 'id' => 'multiple-select',
29+ 'options' => [
30+ 'multiple' => 'multiple',
31+ ],
32+ 'selectAll' => true,
33+ 'deselectAll'=>true,
34+ ])
35+
36+ ```
37+
You can’t perform that action at this time.
0 commit comments