2.0.0 • Published 6 months ago

@npm-csrail/dropdown-menu v2.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Exposition

Installation for working instance:

  • Clone the repository
  • Run npm install to install dependencies
  • Run npm run serve:open
  • Click the dropdowns

To create a new dropdown menu:

  • Create an object following the same relations as in file data.js
  • Import the object into index.js
  • In index.js file, create a new DropdownController object and pass data into it: new DropdownController(dataMenuItems1)
  • Call displayView on the dropdown controller object. This will return an HTML element object
  • Append the HTML element object to the DOM.