paevle / yii2-multi-select
yii2 多选
v1.0
2015-09-10 13:06 UTC
Requires
This package is not auto-updated.
Last update: 2024-09-14 18:47:36 UTC
README
yii2 多选
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
php composer.phar require --prefer-dist pavle/yii2-multi-select "*"
或在您的 composer.json
文件的 require 部分添加:
"pavle/yii2-multi-select": "*"
to
用法
扩展安装完成后,只需在代码中简单使用即可。
<?= \pavle\multiselect\MultiSelectWidget::widget([ 'model' => $model, 'attribute' => 'attribute', 'url' => [] ]); ?>