跳到主要内容

workbench-tree

Insider
<visual-builder.workbench-tree>

Properties

NameDescriptionTypeDefaultRequired
nodesWorkbenchNodeData[]
actionsWorkbenchTreeAction[]
actionsHiddenboolean
placeholderstring
isTransformNameboolean
searchPlaceholderstring
noSearchboolean
activeKeystring | number
showMatchedNodeOnlyboolean
matchNodeDataFieldsstring | string[]
fixedActionsForRecord<string, unknown> | Record<string, unknown>[]
collapsibleboolean
collapsedNodesstring[]
allowDragboolean
allowDragToRootboolean
allowDragToInsideboolean
nodeKeystring
skipNotifyboolean

Events

NameDescriptionEvent Detail
action.clickActionClickDetail
node.clickunknown
node.dropany
context.menuunknown
node.toggle{ nodeId: string; collapsed: boolean }

Type references

WorkbenchNodeData

<T = unknown>
NameTypeRequiredDescription
ifboolean
keystring | number
namestring
iconIconConfig
dataT
labelColorstring
labelPrefix{ text: string; style?: React.CSSProperties }
link{ to: string } | { href: string }
badgeIconConfig
childrenWorkbenchNodeData[]
matchedboolean
matchedSelfboolean
pathstring
isContainerboolean
originKeystring
parentPathstring
unreachableboolean

WorkbenchTreeAction

NameTypeRequiredDescription
actionstring
iconIconConfig
titlestring
ifstring | boolean

ActionClickDetail

NameTypeRequiredDescription
actionstring
dataunknown

IconConfig

GeneralIconProps & { color?: string }