andreosoft/yii2-select2-widget

The select2 extension for the Yii framework

dev-master 2017-04-29 13:38 UTC

This package is not auto-updated.

Last update: 2024-06-05 00:29:48 UTC


README

using

Select2::widget(['model' => $searchModel, 'attribute' => 'category', 'items' => ArrayHelper::map(CatalogCategorys::find()->All(), 'id', 'fullname'), 'options' => ['class' => 'form-control', 'prompt' => Yii::t('catalog/main', 'All')]]