Skip to content

luobotang/index-sidebar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A sidebar component with chars as index.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published