Skip to content

wzono/antd-multi-cascader

 
 

Repository files navigation

antd-multiple-cascader

Test PRs Welcome MIT license Codecov Coverage

A multiple cascader component for antd

Online Demo

demo

How to use?

$ npm install antd-multi-cascader or yarn add antd-multi-cascader
const [value, setValue] = React.useState<string[]>([]);

return (
  <MultiCascader
    value={value}
    onChange={setValue}
    data={options}
    placeholder="Select Cities"
  />
)

Props

Props Type Description
value string[] Selected value
data TreeNode[] Cascader options TreeNode { title: string, value: string, children?: TreeNode }
allowClear boolean Whether allow clear
placeholder string The input placeholder
onChange (newVal) => void Callback when finishing value select
selectAll boolean Whether allow select all
className boolean The additional css class
style React.CSSProperties The additional style
disabled boolean Whether disabled select
okText string The text of the Confirm button
cancelText string The text of the Cancel button
selectAllText string The text of the SelectAll radio

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 93.6%
  • Less 5.6%
  • JavaScript 0.8%