0.7.3 • Published 3 years ago

dojando-react-dropdown-jquery v0.7.3

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

This is a fully React Dropdown component based on the jQuery Dropdown.

Install

Install using npm install dojando-react-dropdown-jquery

Usage

In a React app, use the Button component: import { Dropdown } from 'dojando-react-dropdown-jquery'

Dropdown props

Name : data (required)
Description : (string array) Its the list of options of the dropdown.

Name : getValue (required)
Description : (function) the function passed to this prop will receive as parameter the selected value of the dropdown.

Name : name
Description : (string) the name of the dropdown.

Name : labelId
Description : (string) the id of the dropdown that can be linked to a label.

The options are sorted in alphabetical order