Library that allow keyboard navigation through DOM elements (←↑→↓).
![Gitter](https://badges.gitter.im/Join Chat.svg)
bower install dom-navigator --save
npm install dom-navigator --save
- Download the latest release.
- Then include
dom-navigator-###.min.js
into your HTML page.
var el = document.querySelector('#grid');
new DomNavigator(el);
If jQuery is included you can use the library as a jQuery plugin:
var el = $('#grid');
el.domNavigator();
All help are more than welcome!
-
Fork this respository.
-
Clone your fork and create a feature branch from develop.
git clone git@github.com:<your-username>/dom-navigator.git git fetch origin git checkout develop git checkout -b feature-<super-power>
-
Install development dependencies.
npm install bower install
-
Code and be happy!
-
Test your code using QUnit
grunt test
. -
Submit a pull request and grab popcorn.
dom-navigator was created by Rubens Mariuzzo with all the love in the world.