Skip to content

re5et/Menuify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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');
	}
});

About

MooTools plugin to turn groups of elements into keyboard navigable menu items

Resources

Stars

Watchers

Forks

Packages

No packages published