rootlocal / yii2-select2
Yii2 Select2 widget
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Language:Sass
Type:yii2-extension
Requires
- php: >=7.1
- select2/select2: >=4.0.0
- yiisoft/yii2: ~2.0.14
Requires (Dev)
- codeception/codeception: ^4.0
- codeception/module-asserts: ^1.0
- codeception/module-filesystem: ^1.0
- codeception/module-yii2: ^1.0
- codeception/verify: ~0.5.0 || ~1.1.0
- symfony/browser-kit: >=2.7 <=4.2.4
- yiisoft/yii2-debug: ~2.1.0
- yiisoft/yii2-faker: ~2.0.0
This package is auto-updated.
Last update: 2024-11-08 01:18:22 UTC
README
Yii2 Select2 widget
Install
composer require rootlocal/yii2-select2
or add
"rootlocal/yii2-select2": "dev-master"
to the require section of your composer.json.
Basic usage:
<?php use yii\web\View; use yii\bootstrap4\ActiveForm; use rootlocal\widgets\select2\Select2Widget; /** * @var View $this * @var ActiveForm $form */ ?> <?= $form->field($model, 'attribute')->widget(Select2Widget::class,['items'=> $model->getItems()]) ?>