Sha256: 63998b530d4e041829c7c11ed91a8d5d30e8c9ce2ad0848ffb04d50501d8443d

Contents?: true

Size: 643 Bytes

Versions: 13

Compression:

Stored size: 643 Bytes

Contents

import React from "react"
import DropdownTreeSelect from "react-dropdown-tree-select"
import "react-dropdown-tree-select/dist/styles.css"

type HelperProps = {
  id?: string
  treeData?: { [key: string]: string }[]
  onChange?: () => {}

}

const MultiSelectHelper = (props: HelperProps) => {
  const { id, treeData, onChange } = props


  return (
      <DropdownTreeSelect
        data={treeData}
        id={id}
        keepOpenOnSelect
        keepTreeOnSearch
        keepChildrenOnSearch
        onChange={onChange}
        texts={{ placeholder: "Select..." }}
        mode='hierarchical'
      />
  )
}

export default MultiSelectHelper

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease293 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease292 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.7.1.pre.alpha.rubyandnpmalpharelease291 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.7.1.pre.alpha.alpharubyrelease281 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.7.1.pre.alpha.menu2 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.7.1.pre.alpha.menu1 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.7.1 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.7.0 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.6.0.pre.alpha.sectionseparator1 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.6.0.pre.alpha.menuyml1 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.6.0.pre.alpha.collapsible1 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.6.0.pre.alpha.cssphone1 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx
playbook_ui-12.6.0 app/pb_kits/playbook/pb_multi_level_select/_multi_select_helper.tsx