1.6.1 • Published 4 years ago

@kvraamkey/react-multiselect-dropdown v1.6.1

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

React Multiselect Dropdown with Limit

Installing / Getting started

This package is available in npm repository as @kvraamkey/react-multiselect-dropdown. It will work correctly with all popular bundlers.

npm install @kvraamkey/react-multiselect-dropdown --save

[using Yarn]

yarn add @kvraamkey/react-multiselect-dropdown -s

Include the Component

To start using MultiSelectDropDown you just need to import the component from the @kvraamkey/react-multiselect-dropdown package.

Usage

import React, { Component } from 'react';
import MultiSelectDropDown from '@kvraamkey/react-multiselect-dropdown'

class Example extends Component {
    state = {
    itemList: [
      { "id": 1, "itemName": "India" },
      { "id": 2, "itemName": "Singapore" },
      { "id": 3, "itemName": "Australia" },
      { "id": 4, "itemName": "Canada" },
      { "id": 5, "itemName": "South Korea" },
      { "id": 6, "itemName": "Brazil" }
    ]
  }
  render () {
    return (
      <MultiSelectDropDown
        itemList={this.state.itemList}
        selectedItems={selectedItems => console.log(selectedItems)}
      />
    )
  }
}

PropTypes

PropTypeDefault
badgeShowLimitIntegerundefined
primaryKeyStringvalue
labelKeyStringlabel
enableCheckAllBooleantrue
enableSearchFilterBooleantrue
placeHolderTextStringSelect
selectAllTextStringSelect All
unSelectAllTextStringUnSelect All
enableCheckAllBooleantrue

Licensing

The code in this project is licensed under MIT license.

MIT © kvraamkey

1.6.1

4 years ago

1.6.0

4 years ago

1.5.9

4 years ago

1.5.8

5 years ago

1.5.7

5 years ago

1.5.6

5 years ago

1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago