ActiveForm中如何添加select2插件
2018-01-31 本文已影响0人
chinariver
echo $form->field($model, 'parentid', ['showLabels'=>true])
->widget(Select2::classname(), [
'data'=>Addevicearea::getAllArea(),
'pluginOptions'=>['allowClear'=>true],
'options' => ['placeholder'=>'请选择']
]);