harrytang/yii2-dotdotdot

该包已被弃用且不再维护。作者建议使用 https://github.com/modernkernel/yii2-dotdotdot 包。

Yii 2 的 JQuery DotDotDot

安装量: 2,012

依赖者: 0

建议者: 0

安全性: 0

星标: 2

关注者: 1

分支: 1

公开问题: 1

语言:JavaScript

类型:yii2-extension

1.0.1 2015-02-05 03:29 UTC

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']);
    ?>