Skip to content

muhiddingithub/yii2-multiple-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-multiple-select

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require muhiddingithub/yii2-multiple-select "dev-master"

or add

"muhiddingithub/yii2-multiple-select": "dev-master"

to the require section of your composer.json file.

Jquery soruce

Usage

    echo $form->field($model, 'attribute')->widget(\muhiddin\select\MultiSelect::className(), [
            'data' => $dataList,
            'id' => 'multiple-select',
            'options' => [
                'multiple' => 'multiple',
            ],
            'selectAll' => true,
            'deselectAll'=>true,
        ])
        
       ```