Answer the question
In order to leave comments, you need to log in
Why isn't the last remaining element of the Select2 multiselect removed?
Hello!
echo Select2::widget([
'name' => 'AnalyticsSearch[src]',
'value' => $searchModel->src,
'data' => Users::getAllAsArray('id', 'login'),
'options' => ['placeholder' => 'Выбрать...', 'class' => 'grid-filter', 'multiple' => true],
'pluginOptions' => ['allowClear' => true,],
]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question