Open pitonn opened 7 years ago
<?= $form->field($topicForm, 'tagNames')->widget(SelectizeTextInput::className(), [
'loadUrl' => ['tags'],
'options' => ['class' => 'form-control'],
'clientOptions' => [
'plugins' => ['remove_button'],
'valueField' => 'name',
'labelField' => 'name',
'searchField' => ['name'],
'create' => true,
'render' => [
'option_create' => new JsExpression("function (data, escape) {
return '<div class=\"create\">BlahBlahBlah <strong>' + escape(data.input) + '</strong>…</div>';}"
),
],
],
])->error(false) ?>
It works for me
Perfect @msvmiode ! Thank you
Hi, how to pass own 'option_create'? Or how to change lang for option 'Add'? Thanks.