Skip to content

Commit

Permalink
Update readme to document multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefano Mtangoo committed Sep 29, 2024
1 parent a532771 commit 1d25b02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ use Yii2\Extension\Select2\Select2;
]) ?>
```

### Text input
### Multiple aka Tag mode input

```php
use Yii2\Extension\Select2\Select2;
Expand All @@ -75,6 +75,9 @@ use Yii2\Extension\Select2\Select2;
'items' => ArrayHelper::map(User::find()->all(), 'id', function($model) {
return $model->fio . " <{$model->email}>";
}),
'options' => [
'multiple' => true,
]
'clientOptions' => [
'placeholder' => 'User',
'allowClear' => true,
Expand Down

0 comments on commit 1d25b02

Please sign in to comment.