menu-drop-down

1.0.1 • Public • Published

menu-drop-down

What is this?

A module published in npmjs with the name 'menu-drop-down', which contains function to create a drop down menu DOM element.

Installation

npm i menu-drop-down --save

Then ..

import { createDropDown } from "menu-drop-down";


let dropDown1 = createDropDown("click me", ["item 1", "item 2", "item 3", "item 4"], 2);
let dropDown2 = createDropDown("push this", ["item 5", "item 6", "item 7", "item8"]);

//remember to import script after body tag or it will throw error
document.querySelector("body").appendChild(dropDown1);
document.querySelector("body").appendChild(dropDown2);

Arguments

createDropDown(
    nameOfDropDownToShow,
    aListOfNamesForItemsInside,
    [z-index of drop down produced]
)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    0
  • 1.0.0
    1

Package Sidebar

Install

npm i menu-drop-down

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

4.18 kB

Total Files

3

Last publish

Collaborators

  • mohite-abhi