트리 셀렉트
트리 셀렉트 (TreeSelect)
This component is going to be rewritten. Please don't use it.출처: 문서
본문
TreeSelect
Props
TreeSelect
type TreeSelectOption = {
label: string
value: string
children?: TreeSelectOption[]
}
| Name | Description | Type | Default |
|---|---|---|---|
| defaultValue | 기본으로 선택된 옵션들이에요 | string[] |
[] |
| fieldNames | options 안의 label value children 필드를 커스텀해요 |
{ label?: string; value?: string; children?: string } |
{} |
| onChange | value가 바뀔 때 트리거돼요 |
(value: string[], extend: { options: TreeSelectOption[] }) => void |
- |
| options | 캐스케이드(계층) 데이터예요 | TreeSelectOption[] |
[] |
| value | 선택된 옵션들이에요 | string[] |
[] |
더 알아보기
계층 선택 UI로는 캐스케이더 뷰 문서도 참고해 보세요.