@wasik/dropdown-menu-package
v1.0.6
Published
description: create dropdown-menu using class name of button/link ('.my-button-class') whichshould show html container(can have hidden atribiut) with dropdown content ('.my-dropdown-container-class')
Readme
dropdown-menu-package
create dropdown menu using class of your html elements
Description: A simple JavaScript function to create dropdown menus. It toggles the visibility of a container (which can have the hidden attribute) using a button or link with a specified class.
Usage:
// Initialize dropdown behavior dropdown('.my-button-class', '.my-dropdown-container-class');
Example HTML:
Features:
Toggle dropdowns by clicking the button.
Close dropdowns by clicking outside or pressing Escape.
Supports multiple dropdowns on one page.
