From 1d25b024a83be3540f82915c67a1fb7998856a08 Mon Sep 17 00:00:00 2001 From: Stefano Mtangoo Date: Sun, 29 Sep 2024 17:23:41 +0300 Subject: [PATCH] Update readme to document multiple --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 646799e..0f57e60 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ use Yii2\Extension\Select2\Select2; ]) ?> ``` -### Text input +### Multiple aka Tag mode input ```php use Yii2\Extension\Select2\Select2; @@ -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,