Closed tapaheh closed 7 years ago
Hi. Is it possible to pass functions in clientOptions, like render, createFilter and create in the Email Contacts Selectize example?
render
createFilter
create
Edit: Answering my own question, the solution is to use yii\web\JsExpression, i.e.
'render' => [ 'item' => new JsExpression(" function(item, escape) { return '<div>' +item.name+'</div>'; }") ]
Great @tapaheh
Hi. Is it possible to pass functions in clientOptions, like
render
,createFilter
andcreate
in the Email Contacts Selectize example?Edit: Answering my own question, the solution is to use yii\web\JsExpression, i.e.