- Chosen Select Widget based on Chosen jQuery plugin chosen
- Usage with ActiveForm and model
echo $form->field($model, 'subject')->widget(\softcommerce\chosen\ChosenSelect::className(),[
'items' => [
'first' => 'First',
'second' => 'Second'
],
]);
- Usage without a model
echo \softcommerce\chosen\ChosenSelect::widget([
'name' => 'select',
'items' => BooleanEnum::listData(),
'options' => [
'width' => '95%'
]
]);
You can find them on the options page