Closed bogdandin closed 7 years ago
@bogdandin should be:
echo MultiSelect::widget([
'model'=> $model,
'attribute' => "domeni_carte", // should be array of values!
"options" => ['multiple'=>"multiple"], // for the actual multiselect
'data' => [ 0 => 'super', 2 => 'natural'], // data as array
"clientOptions" =>
[
"includeSelectAllOption" => true,
'numberDisplayed' => 2
],
]);
I replaced this
with you example;
And not work to save form... //domeni_carte is simple text