A sidebar component with chars as index.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
data.js
demo.gif
demo.png
index.css
index.html
index.js
package.json

README.md

index-sidebar

A sidebar component with chars as index.

DEMO

Usage

Install:

npm i index-sidebar

Require it in your code:

var IndexSidebar = require('index-sidebar')

var sidebar = new IndexSidebar()
sidebar.on('charChange', function (ch) {
  console.log(ch)
})

Or in your HTML include the script file:

<script src="index-sidebar/index.js"></script>
<script>
var sidebar = new IndexSidebar()
sidebar.on('charChange', function (ch) {
  console.log(ch)
})
</script>

How I build this component?

I have wrote a blog about this.