New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

basic-dropdown-kb

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-dropdown-kb

Add basic dropdown functionality to show/hide the dropdown's content for all the dropdown on the page.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Basic Dropdown KB

Add basic dropdown functionality to show/hide the dropdown's content for all the dropdown on the page.

How to use

  • Add dropdown container's markup on the page with the class dropdown.
  • Add markup for the dropdown content toggler button as a child of the dropdown container. The button should have a class value dropdown-toggler and a data attribute data-dropdown-target which would contain the id of the dropdown content for this dropdown.
  • Add markup for the dropdown content as a child of the dropdown container besides the toggle button. The dropdown content should have the class attribute with the value dropdown-content and an id attribute whose value will be used in the toggle button's data-dropdown-target attribute.

Keywords

dropdown

FAQs

Package last updated on 18 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts