maddoger/yii2-selectize
最新稳定版本:v1.0.0
Composer 安装命令:
composer require maddoger/yii2-selectize
包简介
Selectize.js widget for the Yii 2 framework
关键字:
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require maddoger/yii2-selectize:~1.0
or add
"maddoger/yii2-selectize": "~1.0"
to the require section of your composer.json file.
Usage
Selectize has lots of configuration options. For further information, please check the Selectize plugin website.
Text input widget
To use text input widget add the following to the view
use maddoger\widgets\SelectizeTextInput; echo SelectizeTextInput::widget([ 'name' => 'tags', 'value' => 'love, this, game', 'clientOptions' => [ // ... ], ]);
Dropdown list widget
To use dropdown list widget add the following to the view
use maddoger\widgets\SelectizeDropDownList; echo SelectizeDropDownList::widget([ 'name' => 'tags', 'value' => ['love', 'this', 'game'], 'clientOptions' => [ // ... ], ]);
统计信息
- 总下载量: 28
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache
- 更新时间: 2015-10-12