Metrics
0
Watch 4 Star 9 Fork 1

XiaoSK / metisMenu-statefulJavaScriptMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Bootstrap菜单插件metisMenu的增强版,支持展开状态记忆和当前菜单高亮。 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

metisMenu-stateful


说明

metisMenu-stateful 是“有状态”的 metisMenu 。其综合了 onokumus/metisMenu v1.0.3 和 valgen/metisMenu 的特性,并修正了各自的一些 BUG 。此外,还增加了对当前所展开菜单的高亮显示支持。后续将根据原 repo 跟进新特性更新。

Usage

  1. Add a Style Class(Default:.nav-current) in Your CSS if You Want to Highlight the Current Menu

    .nav-current {
        font-weight: bold;
        color: #5cb85c;
    } /* Custom by yourself */
  2. Include Twitter Bootstrap StyleSheet

  3. Include metisMenu StyleSheet

    <link rel="stylesheet" href="metismenu.css">
  4. Include jQuery

    <script src="jquery.min.js"></script>
  5. Include Twitter Bootstrap Script

    <script src="bootstrap.min.js"></script>
  6. Include metisMenu plugin's code

    <script src="metismenu.js"></script>
  7. Call the plugin:

    $("#menu").metisMenu();

License

MIT License

Comments ( 0 )

You need to Sign in for post a comment

JavaScript
1
https://gitee.com/xskonline/metisMenu-stateful.git
git@gitee.com:xskonline/metisMenu-stateful.git

Help Search