4 Star 13 Fork 1

XiaoSK / metisMenu-stateful

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README
MIT

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

The MIT License (MIT) Copyright (c) 2014 XiaoSK Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Bootstrap菜单插件metisMenu的增强版,支持展开状态记忆和当前菜单高亮。 expand collapse
JavaScript
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
JavaScript
1
https://gitee.com/xskonline/metisMenu-stateful.git
git@gitee.com:xskonline/metisMenu-stateful.git
xskonline
metisMenu-stateful
metisMenu-stateful
master

Search