UNPKG

rsuite

Version:

A suite of react components

21 lines (20 loc) 993 B
import React from 'react'; import { PickerLocale } from '../locales'; import { PickerComponent } from '../Picker'; import { TreeBaseProps } from '../Tree/Tree'; import { FormControlPickerProps, ItemDataType } from '../@types/common'; export declare type ValueType = (string | number)[]; export interface CheckTreePickerProps<T = ValueType> extends TreeBaseProps<T, ItemDataType>, FormControlPickerProps<T, PickerLocale, ItemDataType> { /** Tree node cascade */ cascade?: boolean; /** A picker that can be counted */ countable?: boolean; /** Set the option value for the check box not to be rendered */ uncheckableItemValues?: T; /** Custom render selected items */ renderValue?: (value: any[], selectedItems: any[], selectedElement: React.ReactNode) => React.ReactNode; /** Called when scrolling */ onScroll?: (event: React.SyntheticEvent) => void; } declare const CheckTreePicker: PickerComponent<CheckTreePickerProps>; export default CheckTreePicker;