Context.js is a lightweight solution for contextual menus. Currently, there are two versions.
The first is to be used with Twitters Bootstrap (bootstrap.css specifically). If you do not use or want to use bootstrap.css, there is a standalone stylesheet to give the menu it’s base styles.
Features:
Linted: Valid JS
Can be used with or without Twitters Bootstrap.css
Event Based Links
Anchor Links
Headers
Dividers
Recursive Menus (infinite depth)
Vertical Space Detection (turns into a “dropup”)
Horizontal Space Detection (Drops to the left instead of right)