npm.io
1.0.3 • Published 3 years ago

@gunesozdogan/dynamic-drop-down-menu

Licence
ISC
Version
1.0.3
Deps
0
Size
2 kB
Vulns
0
Weekly
0

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,
};