danielhusar / jquery-mobile-menu

jQuery mobile menu with fixed nav bar (like yeoman.io have)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery mobile menu Build Status

Toggle the mobile menu when you have fixed navbar. See demo how it works. (use small page width)

Installation

Download manually or with bower:

$ bower install jquery-mobile-menu

Sample usage

$('button').mobileMenu();

Options

openClass

Type: String
Default: 'menu-open'

Class that is added to html when the menu is open

preventDefault

Type: Boolean
Default: true

If the default action should be prevented. (like anchor redirect)

callback

Type: Function
Default: noop

Function to be called each time user click the toggle button

Demo

Demo

License

MIT © Daniel Husar

About

jQuery mobile menu with fixed nav bar (like yeoman.io have)

License:MIT License


Languages

Language:JavaScript 77.6%Language:CSS 22.4%