Insider<visual-builder.workbench-tree>
Properties
Name | Description | Type | Default | Required |
---|
nodes | | WorkbenchNodeData[] | | |
actions | | WorkbenchTreeAction[] | | |
actionsHidden | | boolean | | |
placeholder | | string | | |
isTransformName | | boolean | | |
searchPlaceholder | | string | | |
noSearch | | boolean | | |
activeKey | | string | number | | |
showMatchedNodeOnly | | boolean | | |
matchNodeDataFields | | string | string[] | | |
fixedActionsFor | | Record<string, unknown> | Record<string, unknown>[] | | |
collapsible | | boolean | | |
collapsedNodes | | string[] | | |
allowDrag | | boolean | | |
allowDragToRoot | | boolean | | |
allowDragToInside | | boolean | | |
nodeKey | | string | | |
skipNotify | | boolean | | |
Events
Name | Description | Event Detail |
---|
action.click | | ActionClickDetail |
node.click | | unknown |
node.drop | | any |
context.menu | | unknown |
node.toggle | | { nodeId: string; collapsed: boolean } |
Type references
WorkbenchNodeData
<T = unknown>
Name | Type | Required | Description |
---|
if | boolean | | |
key | string | number | ✅ | |
name | string | ✅ | |
icon | IconConfig | | |
data | T | | |
labelColor | string | | |
labelPrefix | { text: string; style?: React.CSSProperties } | | |
link | { to: string } | { href: string } | | |
badge | IconConfig | | |
children | WorkbenchNodeData[] | | |
matched | boolean | | |
matchedSelf | boolean | | |
path | string | | |
isContainer | boolean | | |
originKey | string | | |
parentPath | string | | |
unreachable | boolean | | |
WorkbenchTreeAction
Name | Type | Required | Description |
---|
action | string | ✅ | |
icon | IconConfig | ✅ | |
title | string | | |
if | string | boolean | | |
ActionClickDetail
Name | Type | Required | Description |
---|
action | string | ✅ | |
data | unknown | | |
IconConfig
GeneralIconProps & { color?: string }