Properties
Optional activeKey
activeKey?: null | Key
Optional autoExpandParent
autoExpandParent?: boolean
Optional blockNode
blockNode?: boolean
Optional checkStrictly
checkStrictly?: boolean
Optional checkable
checkable?: boolean
Optional checkedKeys
checkedKeys?: Key[] | {
checked: Key[];
halfChecked: Key[];
}
Type declaration
checked: Key[]
halfChecked: Key[]
Optional children
children?: ReactNode
Optional className
className?: string
Optional defaultCheckedKeys
defaultCheckedKeys?: Key[]
Optional defaultExpandAll
defaultExpandAll?: boolean
Optional defaultExpandParent
defaultExpandParent?: boolean
Optional defaultExpandedKeys
defaultExpandedKeys?: Key[]
Optional defaultSelectedKeys
defaultSelectedKeys?: Key[]
Optional disabled
disabled?: boolean
Optional draggable
draggable?: boolean | DraggableFn | DraggableConfig
Optional dropIndicatorRender
dropIndicatorRender?: ((props) => ReactNode)
Type declaration
- (props): ReactNode
Parameters
props: {
direction: Direction;
dropLevelOffset: number;
dropPosition: 0 | 1 | -1;
indent: number;
prefixCls: string;
}
direction: Direction
dropLevelOffset: number
dropPosition: 0 | 1 | -1
indent: number
prefixCls: string
Returns ReactNode
Optional expandAction
expandAction?: ExpandAction
Optional expandedKeys
expandedKeys?: Key[]
Optional fieldNames
fieldNames?: FieldNames
Optional filterAntTreeNode
filterAntTreeNode?: ((node) => boolean)
Type declaration
- (node): boolean
Returns boolean
Optional filterTreeNode
filterTreeNode?: ((treeNode) => boolean)
Type declaration
- (treeNode): boolean
Parameters
treeNode: EventDataNode<T>
Returns boolean
Optional focusable
focusable?: boolean
Optional height
height?: number
Optional icon
icon?: null | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode | ((nodeProps) => ReactNode) | ((props) => ReactNode)
Type declaration
- (nodeProps): ReactNode
Parameters
nodeProps: AntdTreeNodeAttribute
Returns ReactNode
Type declaration
- (props): ReactNode
Returns ReactNode
Optional itemHeight
itemHeight?: number
Optional itemScrollOffset
itemScrollOffset?: number
Optional loadData
loadData?: ((treeNode) => Promise<any>) Type declaration
- (treeNode): Promise<any>
Parameters
treeNode: EventDataNode<T>
Optional loadedKeys
loadedKeys?: Key[]
Optional motion
motion?: any
Optional multiple
multiple?: boolean
Optional onActiveChange
onActiveChange?: ((key) => void)
Optional onCheck
onCheck?: ((checked, info) => void)
Type declaration
- (checked, info): void
Parameters
checked: Key[] | {
checked: Key[];
halfChecked: Key[];
}
info: CheckInfo<T>
Returns void
Optional onClick
onClick?: NodeMouseEventHandler<T> Optional onDoubleClick
onDoubleClick?: NodeMouseEventHandler<T> Optional onDragEnd
onDragEnd?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeDragEventParams<T>
Returns void
Optional onDragEnter
onDragEnter?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeDragEventParams<T> & {
expandedKeys: Key[];
}
Returns void
Optional onDragLeave
onDragLeave?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeDragEventParams<T>
Returns void
Optional onDragOver
onDragOver?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeDragEventParams<T>
Returns void
Optional onDragStart
onDragStart?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeDragEventParams<T>
Returns void
Optional onDrop
onDrop?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeDragEventParams<T> & {
dragNode: EventDataNode<T>;
dragNodesKeys: Key[];
dropPosition: number;
dropToGap: boolean;
}
Returns void
Optional onExpand
onExpand?: ((expandedKeys, info) => void)
Type declaration
- (expandedKeys, info): void
Parameters
expandedKeys: Key[]
info: {
expanded: boolean;
nativeEvent: MouseEvent;
node: EventDataNode<T>;
}
expanded: boolean
node: EventDataNode<T>
Returns void
Optional onLoad
onLoad?: ((loadedKeys, info) => void)
Type declaration
- (loadedKeys, info): void
Parameters
loadedKeys: Key[]
info: {
event: "load";
node: EventDataNode<T>;
}
event: "load"
node: EventDataNode<T>
Returns void
Optional onMouseEnter
onMouseEnter?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeMouseEventParams<T>
Returns void
Optional onMouseLeave
onMouseLeave?: ((info) => void)
Type declaration
- (info): void
Parameters
info: NodeMouseEventParams<T>
Returns void
Optional onRightClick
onRightClick?: ((info) => void)
Optional onSelect
onSelect?: ((selectedKeys, info) => void)
Type declaration
- (selectedKeys, info): void
Parameters
selectedKeys: Key[]
info: {
event: "select";
nativeEvent: MouseEvent;
node: EventDataNode<T>;
selected: boolean;
selectedNodes: T[];
}
event: "select"
node: EventDataNode<T>
selected: boolean
selectedNodes: T[]
Returns void
Optional prefixCls
prefixCls?: string
Optional rootClassName
rootClassName?: string
Optional rootStyle
rootStyle?: CSSProperties
Optional selectable
selectable?: boolean
Optional selectedKeys
selectedKeys?: Key[]
Optional showIcon
showIcon?: boolean
Optional showLine
showLine?: boolean | {
showLeafIcon: TreeLeafIcon;
}
Type declaration
showLeafIcon: TreeLeafIcon
Optional style
style?: CSSProperties
Optional switcherIcon
switcherIcon?: null | string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | PromiseLikeOfReactNode | ((props) => ReactNode) | ((props) => ReactNode)
Type declaration
- (props): ReactNode
Returns ReactNode
Type declaration
- (props): ReactNode
Returns ReactNode
Optional tabIndex
tabIndex?: number
Optional titleRender
titleRender?: ((node) => ReactNode)
Type declaration
- (node): ReactNode
Returns ReactNode
Optional virtual
virtual?: boolean
Whether to automatically expand the parent node