A mobile friendly alphabetical side navigation to quickly jump between sections of a list. Similar to the iOS section index navigation.
npm install alphabet-jump-nav
<div class="my-view">
<ul id="my-list">
<li data-title="A Title">A Title</li>
<li data-title="B Title">B Title</li>
<li data-title="C Title">C Title</li>
<li data-title="D Title">D Title</li>
<!-- ..... -->
<li data-title="Z Title">Z Title</li>
</ul>
</div>
let JumpNav = require('alphabet-jump-nav')
let myView = document.querySelector('#my-view')
let myList = document.querySelector('#my-list')
let jumpNav = new JumpNav()
jumpNav.appendTo(myView)
jumpNav.linkTo(myList)
Dont forget to import the CSS
@import "node_modules/alphabet-jump-nav/style.less"
- Initial release
MIT © Kevin Jantzer – Blackstone Publishing