1.0.1 ā€¢ Published 4 years ago

@aaronrory/js-dropdownmenu v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

JS-DropdownMenu

A bare minimum importable module for JavaScript drop down menus

screenshot

To install module

Add the following JavaScript code to your main js file

import MenuHandler from '@aaronrory/js-dropdownmenu';

const menuHandler =  new MenuHandler();
menuHandler.constructMenus();

To install the module use the command: npm install @aaronrory/js-dropdownmenu --save

Instructions

Simply follow the similar layout to add this dropbox functionality to your html page. You must have two main div elements with the data-dropDownMenu = "verticle" attribute for the parent and data-dropDownContent = "true" attribute in the child div containing the dropdown links or items.

<div data-dropDownMenu="verticle">
  <span>Dropdown Menu</span>
  <div data-dropDownContent ="true">
    <a href="#">Dropdown 1</a>
    <a href="#">Dropdown 2</a>
    <a href="#">Dropdown 3</a>
  </div>
</div>

Live Link

Live Githack Link: https://raw.githack.com/Aaron-RN/JS-DropdownMenu/gitshow/dist/index.html

Built With

  • HTML, CSS
  • JavaScript
  • Webpack

Authors

šŸ‘¤ Aaron Rory

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

Show your support

Give a ā­ļø if you like this project!

šŸ“ License

This project is MIT licensed.

1.0.0

4 years ago

1.0.124

4 years ago

1.0.123

4 years ago

1.0.122

4 years ago

1.0.121

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.1

4 years ago