
Product
Introducing Repository Labels and Security Policies
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
react-multiselect-dd
Advanced tools
React multiselect dropdown. Support tree structure view, support search on tree, easily customizable according current theme. npm install react-multiselect-dd --save
A reactjs multiselect dropdown with search functionality and multiple other options.
npm install react-multiselect-dd
Import module in your app.module.ts
:
import Multiselect from "react-multiselect-dd";
...
<Multiselect
data={sampleData}
onChange={getSelected}
showSelected={2}/>
sampleData format
const sampleData = [
{
value: 1,
text: "First",
child: [
{
value: 2,
text: "First.1",
child: [
{
value: 3,
text: "First.1.1"
}
]
}
]
},
{
value: 4,
text: "Second",
},
...
];
Name | Type | Description | Required | Default |
---|---|---|---|---|
data | Array | Data array that use in multiselect dropdown | Yes | [] |
onChange | Function | Callback function that use for get selected values | Yes | |
showSelected | Number | Max limit of display selected item in input, after that it will display total selected count. | No | 2 |
customStyle | Object | Detail here | No |
You can update Dropdown style according requirments. Following Custome Styles available:
Name | Type | Description | Default |
---|---|---|---|
inputHeight | Number | Use for set Dropdown input height | 40 |
inputWidth | Number | Use for set Dropdown input width | 360 |
checkedColor | String | Use for set checked box checked color | '#e6783b' |
optionHeight | Number | Use for set dropdown option height | 400 |
You can pass following options in customStyle props.
<Multiselect
data={sampleData}
onChange={getSelected}
showSelected={2}
customStyle={{
'optionHeight': 400,
'checkedColor': '#e6783b',
'inputHeight': 40,
'inputWidth': 360
}}
/>
MIT Licensed. Copyright (c) 2019 sanjay verma
Your contributions and suggestions are always welcome :)
FAQs
React multiselect dropdown. Support tree structure view, support search on tree, easily customizable according current theme. npm install react-multiselect-dd --save
The npm package react-multiselect-dd receives a total of 1 weekly downloads. As such, react-multiselect-dd popularity was classified as not popular.
We found that react-multiselect-dd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.
Product
Socket now supports .NET, bringing supply chain security and SBOM accuracy to NuGet and MSBuild-powered C# projects.