1.0.0 • Published 5 months ago
create-element-menu-dropdown v1.0.0
Dropdown
This module provides a function, createDropdown, that creates a simple dropdown element. The dropdown is initially hidden (display: none) and can be toggled to appear or disappear when a specified button is clicked.
How to use
To use this function, create an element for dropdown which can be option select to show later when user clicked in your HTML. Beside the element for option, create button to add click event for toggling dropdown in your HTML, pass the button and element as argument for this function to process.
Installation
npm install createdropdown
1.0.0
5 months ago