thtmorais/yii2-dropdown
最新稳定版本:0.0.4
Composer 安装命令:
composer require thtmorais/yii2-dropdown
包简介
Dropdown button - Dynamic change actions for Yii PHP Framework
README 文档
README
Dropdown button - Dynamic change actions for Yii PHP Framework
Installation
The preferred way to install this extension is through composer.
Either run
composer require thtmorais/yii2-dropdown "*"
or add
"thtmorais/yii2-dropdown": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= Dropdown::widget([ 'dropdownToggleClass' => 'btn btn-lg btn-success', 'main' => [ 'id' => 'getStartedWithYii', 'href' => 'http://www.yiiframework.com/', 'class' => 'btn btn-lg btn-success', 'text' => 'Get started with Yii' ], 'subordinate' => [ [ 'id' => 'yiiDocumentation', 'href' => 'http://www.yiiframework.com/doc/', 'text' => 'Yii Documentation' ], [ 'id' => 'yiiForum', 'href' => 'http://www.yiiframework.com/forum/', 'text' => 'Yii Forum' ], [ 'id' => 'yiiExtensions', 'href' => 'http://www.yiiframework.com/extensions/', 'text' => 'Yii Extensions' ] ], 'options' => [ 'id' => 'group-dropdown', 'class' => 'p-1' ] ]) ?>
Example being executed
统计信息
- 总下载量: 5.93k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-09