All Projects → lazee → lazeemenu

lazee / lazeemenu

Licence: BSD-2-Clause license
Multi-level sidebar menu - JQuery plugin

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to lazeemenu

Selectmenu
Simple, easily and diversity menu solution
Stars: ✭ 284 (+610%)
Mutual labels:  jquery-plugin, menu
Sidr
Sidr is a jQuery plugin for creating side menus and the easiest way for doing your menu responsive.
Stars: ✭ 2,924 (+7210%)
Mutual labels:  jquery-plugin, menu
ml-stack-nav
Customizable, responsive, accessible, easy-to-use multi-level stack navigation menu with slide effect.
Stars: ✭ 20 (-50%)
Mutual labels:  jquery-plugin, menu
drawer
A touch-enabled drawer component for the modern web.
Stars: ✭ 26 (-35%)
Mutual labels:  jquery-plugin, menu
Jquery Ui Contextmenu
jQuery plugin that turns a jQueryUI menu widget into a context menu.
Stars: ✭ 170 (+325%)
Mutual labels:  jquery-plugin, menu
Jquery Menu Editor
Multilevel Menu Editor for Bootstrap 4.x (Html & Javascript code)
Stars: ✭ 144 (+260%)
Mutual labels:  jquery-plugin, menu
menu
基于jQuery的轻量级响应式菜单插件
Stars: ✭ 18 (-55%)
Mutual labels:  jquery-plugin, menu
Metismenu
Related projects
Stars: ✭ 1,904 (+4660%)
Mutual labels:  jquery-plugin, menu
Hc Offcanvas Nav
JavaScript library for creating toggled off-canvas multi-level navigations, allowing endless nesting of submenu elements, supporting swipe gestures, keyboard interactions and ARIA attributes.
Stars: ✭ 201 (+402.5%)
Mutual labels:  jquery-plugin, menu
selectr
✅ The coolest jQuery select plugin you've never seen
Stars: ✭ 19 (-52.5%)
Mutual labels:  jquery-plugin, menu
sim-tree
一个操作简单的基于jquery的树展示插件,支持异步展示子节点
Stars: ✭ 22 (-45%)
Mutual labels:  jquery-plugin
jQuery-Clock-Plugin
Turns a given dom element into a jQuery Clock that can take an initial timestamp instead of client system time, supports internationalization and PHP Style Format Characters, and is relatively independent from system clock
Stars: ✭ 70 (+75%)
Mutual labels:  jquery-plugin
provejs-jquery
An event based jQuery plugin for client-side validation of html forms.
Stars: ✭ 76 (+90%)
Mutual labels:  jquery-plugin
jqlouds
☁️ An awesome yet simple plugin for jquery that let's you create clouds on the fly.
Stars: ✭ 54 (+35%)
Mutual labels:  jquery-plugin
Asuite
ASuite is a simple open source portable launcher for Microsoft Windows.
Stars: ✭ 58 (+45%)
Mutual labels:  menu
guillotine
Guillotine is a gnome extension designed for efficiently carrying out executions of commands from a customizable menu. Simply speaking: it is a highly customizable menu that enables you to launch commands and toggle services.
Stars: ✭ 28 (-30%)
Mutual labels:  menu
jquery.selectlistactions.js
jQuery.SelectListActions plugin allows you to perform several actions with HTML Select lists
Stars: ✭ 35 (-12.5%)
Mutual labels:  jquery-plugin
jquery.youtube-inview-autoplay
📺 A jQuery plugin that starts playing YouTube video when it's scrolled into the view and stops it when it's scrolled out
Stars: ✭ 13 (-67.5%)
Mutual labels:  jquery-plugin
jquery.throwable
JQuery plugin to make HTML elements throwable
Stars: ✭ 69 (+72.5%)
Mutual labels:  jquery-plugin
jquery-imageuploader-js
A JQuery plugin that provides an interface for managing a set of files to upload. Files will have a thumbnail preview and can be removed before the upload step.
Stars: ✭ 18 (-55%)
Mutual labels:  jquery-plugin

LazeeMenu

NOTE: This project was mostly about having a package up in NPM from a devops perspective, but it actually got some users around the world. But now its time to archive it for good.

LazeeMenu is a JQuery plugin that turns a nested unordered list of links into a vertical multi-level navigation menu. It is visually inspired by the menu on Github's reference pages, but with support for an additional level. It support both links and standard text in the expandable menu items.

demo

Homepage - Demo | Download ZIP

Install with NPM

npm install lazeemenu

Getting started

Download the plugin, unzip it and copy the files to your project folder. Then include the css and js inside your HTML.

<head>
    <!-- Load LazeeMenu CSS -->
    <script type="text/javascript" src="/lazeemenu/lazeemenu.css"></script>
</head>
<body>
    <!-- Add this at the bottom of the body tag -->
    <!-- Load JQuery -->
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!-- Load LazeeMenu -->
    <script type="text/javascript" src="/lazeemenu/lazeemenu-jquery.js"></script>
</body>

Sample menu and how to activate:

<ul id="menu-1">
    <li>
        <h3><span>Tennis</span></h3>
        <ul>
            <li><a href="/">Serves</a></li>
            <li class="active"><a href="/">Player results</a></li>
            <li><a href="/">Leagues</a></li>
            <li><a href="/">Tournaments</a></li>
        </ul>
    </li>
    <li>
        <h3><span>Ballet</span></h3>
        <ul>
            <li><a href="/">Dancers</a></li>
            <li><a href="/">Famous acts</a></li>
        </ul>
    </li>
</ul>
<script type="text/javascript">
    $(document).ready(function() {
        $('#menu-1').lazeemenu();
    });
</script>

There are also a few options that can be extended:

<script type="text/javascript">
    $(document).ready(function() {
        $('.menu-1').lazeemenu({
            activeClass: 'active',
            initialState: 'default'        
        });
    });
</script>

Options

These are the options you can set during activation of a menu.

activeClass

  • Type: string
  • Default: active

The name of the class name used in li elements to indicate what link that should be marked as active.

initialState

  • Type: string
  • Default: default

You can set this value to expanded if you initially want the entire menu expanded. Setting it to collapsed will collapse the menu. Finally default (Which is the default ;)) will make sure that the active link is expanded. Everything else will be collapsed.

Public methods

expandAll

Expand all menu items

$(selector).lazeemenu('expandAll');

expandAll

Collapse all menu items

$(selector).lazeemenu('collapseAll');
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].