yii2-extensions / selectize
Selectize widget for Yii Framework 2
0.1.1
2024-02-27 22:13 UTC
Requires
- php: >=8.1
- npm-asset/selectize--selectize: ^0.15.2
- yii2-extensions/asset-bootstrap5: ^0.1
- yiisoft/yii2: ^2.0.49 || ^2.2
Requires (Dev)
- maglnet/composer-require-checker: ^4.7
- php-forge/support: ^0.1
- phpunit/phpunit: ^10.5
- roave/infection-static-analysis-plugin: ^1.34
- symplify/easy-coding-standard: ^12.1
- yii2-extensions/phpstan: ^0.1
This package is auto-updated.
Last update: 2024-11-28 08:39:21 UTC
README
Selectize.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist yii2-extensions/selectize:^0.1
or add
"yii2-extensions/selectize": "^0.1"
to the require section of your composer.json
file.
Usage
Dropdown list
use Yii2\Extension\Selectize\Selectize; Selectize::widget( [ 'attribute' => 'tags', 'items' => ['foo', 'bar'], 'model' => new SelectizeModel(), // your model ], );
Text input
use Yii2\Extension\Selectize\Selectize; Selectize::widget( [ 'attribute' => 'tags', 'items' => ['foo', 'bar'], 'model' => new SelectizeModel(), // your model 'type' => Selectize::TYPE_TEXT, // `Selectize::TYPE_SELECT`, `Selectize::TYPE_TEXT` ], );
Properties of the widget
Quality code
Support versions Yii2
Testing
Check the documentation testing to learn about testing.
Our social networks
License
The MIT License. Please see License File for more information.