Skip to content

Commit 2d2c854

Browse files
usage, installation
1 parent 0f8e35b commit 2d2c854

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
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+

0 commit comments

Comments
 (0)