Dropdown-menu
A simple dropdown-menu component.
Install
npm i dropdown-menu
Copy the css file as needed
Example
click menew repositoryNew organizationlogout
var dropdown =var el = documentvar d =d
API
dropdown(trigger, [postion], [offset])
- trigger is trigger element.
- postion is position string used for align
- offst is offset argument for align
.hide()
hide menu element.
Event
select