What is this?
Creates dynamic drop-down menu for the user.
Installation?
npm i @gunesozdogan/dynamic-drop-down-menu --save
Arguments
dropDown function gets one object argument like given below.
- key for parent DOM element
- key for menu elements which gets an array of strings
const options = {
menuElements: ["a", "b", "c", "d"],
parentElement: parent,
};