@npm-csrail/dropdown-menu
2.0.0 • Public • Published 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.
Readme
Keywords
nonePackage Sidebar
Install
npm i @npm-csrail/dropdown-menu
Weekly Downloads