Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

superdd

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

superdd

Very useful react component for multi selection dropdown with filtering , toggle selecting all, tags outside the dropdown and custom button inside dropdown

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
316
increased by40.44%
Maintainers
1
Weekly downloads
 
Created
Source

SupperDD

Very useful react component for multi selection dropdown with filtering , toggle selecting all, tags outside the dropdown and custom button inside dropdown

Alt Text

Installation

npm install supperdd

Usage

import SupperDD from 'superdd/dist/index';

const Home = (props) => {
  let listData = [
    {Id: 1, Code: 'hhh', Name: 'Hello1', Discription: 'anything1'},
    {Id: 2, Code: 'ggg', Name: 'Hello2', Discription: 'anything2'},
    {Id: 3, Code: 'fff', Name: 'Hello3', Discription: 'anything3'},
    {Id: 4, Code: 'rrr', Name: 'Hello4', Discription: 'anything4'},
    {Id: 5, Code: 'nnn', Name: 'Hello5', Discription: 'anything5'},
    {Id: 6, Code: 'uuu', Name: 'Hello6', Discription: 'anything6'},
    {Id: 7, Code: 'ooo', Name: 'Hello7', Discription: 'anything7'},
    {Id: 8, Code: 'www', Name: 'Hello8', Discription: 'anything8'},
  ];

  const selectedLabelsContainer = useRef(null);

  const updateActionHandler = ()=>{};

  const cancelActionHandler = ()=>{};

  return (
      <div >
        <SuperDD
          DataList={listData}
          DisplayBy={'Code'}
          PlaceHolder={'Select Platforms'}
          ShowUpdateButton={true}
          UpdateAction={updateActionHandler}
          ShowCancelButton={true}
          CancelAction={cancelActionHandler}
          Filterable={true}
          SelectedLabelsOutsideIn={selectedLabelsContainer}
        />
      </div>
  );
};

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Keywords

FAQs

Package last updated on 16 Jun 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc