Open prathapgantena opened 2 years ago
Please find attached sample code echo $form->field($model, 'column_name')->widget(Select2::classname(), [ 'data' => ['test-1'=>'Test-1','test-2'=>'Test-2','test 3'=>'Test-3','test@1'=>'Test @ 4'], 'language' => 'en', 'options' => [ 'placeholder' => 'Search Data ', ], 'pluginOptions' => [ 'allowClear' => true, 'multiple' => true, ], ]);
Please find attached sample code echo $form->field($model, 'column_name')->widget(Select2::classname(), [ 'data' => ['test-1'=>'Test-1','test-2'=>'Test-2','test 3'=>'Test-3','test@1'=>'Test @ 4'], 'language' => 'en', 'options' => [ 'placeholder' => 'Search Data ', ], 'pluginOptions' => [ 'allowClear' => true, 'multiple' => true, ], ]);