harrytang / yii2-dotdotdot
1.0.1
2015-02-05 03:29 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2016-07-24 16:46:19 UTC
README
Yii 2.x 的 JQuery DotDotDot 插件
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
php composer.phar require --prefer-dist harrytang/yii2-dotdotdot "*"
或者
"harrytang/yii2-dotdotdot": "*"
将以下内容添加到 composer.json 的 require
部分。
快速开始
<div class="dot3" style="height: 50px;">
The main property of Menu is $items, which specifies the possible items in the menu. A menu item can contain sub-items which specify the sub-menu under that menu item.
<br /><br />
Menu checks the current route and request parameters to toggle certain menu items with active state.
<br /><br />
Note that Menu only renders the HTML tags about the menu. It does do any styling. You are responsible to provide CSS styles to make it look like a real menu.
</div>
<?php
\harrytang\dotdotdot\DotDotDot::widget();
?>
或者
<?php
\harrytang\dotdotdot\DotDotDot::widget('selector'=>'dot3, 'options'=>['key'=>'value']);
?>