Menuify 0.3

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.



Details

Author
re5et
Current version
0.3
GitHub
re5et/Menuify
Downloads
5683
Category
Interface
Tags
Report
GitHub Issues

Releases


Dependencies

  • _self_/_current_: core/1.2.4: [Core, Browser, Array, Function, Number, String, Hash, Event, Class.Extras, Element.Event, Selectors]

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

Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus