kartik-v/yii2-dropdown-x
最新稳定版本:v1.2.1
Composer 安装命令:
composer require kartik-v/yii2-dropdown-x
包简介
An extended bootstrap 3.x dropdown widget for Yii 2 with submenu drilldown.
README 文档
README
yii2-dropdown-x
An extended bootstrap dropdown widget for Yii Framework 2 with submenu drilldown. This widget extends the \yii\bootstrap\Dropdown widget
with some additional controls and adds CSS and JS for enabling a submenu drilldown. The dropdown menu style is optimized for both desktop
and mobile devices. The drilldown is triggered on active instead of hover so that it works equally well on mobile devices.
Docs & Demo
You can see detailed docs & demos and the API code documentation on usage of the extension.
Installation
The preferred way to install this extension is through composer.
NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stabilitysettings for your application's composer.json.
Either run
$ php composer.phar require kartik-v/yii2-dropdown-x "dev-master"
or add
"kartik-v/yii2-dropdown-x": "dev-master"
to the require section of your composer.json file.
Usage
DropdownX
use kartik\dropdown\DropdownX; echo DropdownX::widget([ 'items' => [ ['label' => 'Action', 'url' => '#'], ['label' => 'Submenu', 'items' => [ ['label' => 'Action', 'url' => '#'], ['label' => 'Another action', 'url' => '#'], ['label' => 'Something else here', 'url' => '#'], ]], ['label' => 'Something else here', 'url' => '#'], '<li class="divider"></li>', ['label' => 'Separated link', 'url' => '#'], ], ]);
License
yii2-dropdown-x is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.
统计信息
- 总下载量: 816.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 16
- 点击次数: 2
- 依赖项目数: 4
- 推荐数: 1
其他信息
- 授权协议: BSD
- 更新时间: 2014-05-09