Giter VIP home page Giter VIP logo

metismenu's Introduction

metisMenu NPM version Bower version PHP version Build Status

A jQuery menu plugin

Installation

npm install metismenu
bower install metisMenu
composer require onokumus/metismenu:dev-master

Usage

  1. Include metisMenu StyleSheet

    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/metisMenu/2.0.2/metisMenu.min.css">
  2. Include jQuery

    <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  3. Include metisMenu plugin's code

    <script src="//cdnjs.cloudflare.com/ajax/libs/metisMenu/2.0.2/metisMenu.min.js"></script>
  4. Add class metismenu to unordered list

    <ul class="metismenu" id="menu">
    
    </ul>
  5. Call the plugin:

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

Options

toggle

Type: Boolean Default: true

For auto collapse support.

  $("#menu").metisMenu({
    toggle: false
  });

activeClass

Type: String Default: active

  $("#menu").metisMenu({
    activeClass: 'active'
  });

collapseClass

Type: String Default: collapse

  $("#menu").metisMenu({
    collapseClass: 'collapse'
  });

collapseInClass

Type: String Default: in

  $("#menu").metisMenu({
    collapseInClass: 'in'
  });

collapsingClass

Type: String Default: collapsing

  $("#menu").metisMenu({
    collapsingClass: 'collapsing'
  });

doubleTapToGo

Type: Boolean Default: false

For double tap support.

  $("#menu").metisMenu({
    doubleTapToGo: true
  });

Testing

npm install
grunt serve

Contains a simple HTML file to demonstrate metisMenu plugin.

Release History

DATE VERSION CHANGES

  • 2015-07-25 v2.0.3 When the active item has doubleTapToGo should not collapse
  • 2015-05-23 v2.0.2 fixed
  • 2015-05-22 v2.0.1 changeable classname support
  • 2015-04-03 v2.0.0 Remove Bootstrap dependency
  • 2015-03-24 v1.1.3 composer support
  • 2014-11-01 v1.1.3 Bootstrap 3.3.0
  • 2014-07-07 v1.1.0 Add double tap functionality
  • 2014-06-24 v1.0.3 cdnjs support & rename plugin
  • 2014-06-18 v1.0.3 Create grunt task
  • 2014-06-10 v1.0.2 Fixed for IE8 & IE9

Author

metisMenu was made with love by these guys and a bunch of awesome contributors.

Osman Nuri Okumuş | --- | --- | --- | --- | --- | --- | --- Osman Nuri Okumuş |

License

MIT License

metismenu's People

Contributors

onokumus avatar igor-ioriatti avatar arthurtalkgoal avatar peterdavehello avatar andreweastwood avatar capynet avatar leomeurer avatar

Watchers

HCA avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.