2.0.0 • Published 2 years ago
@npm-csrail/dropdown-menu v2.0.0
Exposition
Installation for working instance:
- Clone the repository
- Run
npm installto 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.jsfile, create a newDropdownControllerobject and pass data into it:new DropdownController(dataMenuItems1) - Call
displayViewon the dropdown controller object. This will return an HTML element object - Append the HTML element object to the DOM.