Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 659 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 659 Bytes

Menuify

Menuify is a class that allows you to turn groups of elements into keyboard navigable menus. Automatically adds arrow key navigation and does not interfere with tabbing as usual, and allows for easy event binding to all menu items.

Screenshot

How to use

You can use Menuify to create a menu by doing the following:

var myMenu = new Menuify($$('#my-list li a'));

You can add events easily like so:

myMenu.addEvents({
	'focus': function(item){
		console.log(item + ' focused');
	},
	'blur': function(item){
		console.log(item + ' blurred');
	}
});