OrgChart API

API documentation for OrgChart component

OrgChart#

Props#

Defines valid properties in OrgChart component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: OrgChartInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: OrgChartInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<OrgChartPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: OrgChartInstance) => ReactNode)
null
The children to render.
valueTreeNode[]
null
The data of the org chart.
gapnumber | number[]
null
The gap of the org chart.
selectableboolean
true
Whether the nodes of the org chart are selectable.
collapsibleboolean
false
Whether the nodes of the org chart are collapsible.
selectionMode"multiple" | "single"
null
The selection mode of the org chart.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

State#

Defines valid state in OrgChart component.

nametypedefaultdescription
selectedNodesstring[]
null
The selected nodes' ids of the org chart.
collapsedNodesstring[]
null
The collapsed nodes' ids of the org chart.

Exposes#

Defines the methods and properties exposed by OrgChart component.

nametypedefaultdescription
stateOrgChartState
null
The state of the OrgChart component.
toggleNodeSelect(key?: string) => void
null
Toggles the selection of a node.
toggleNodeCollapse(key?: string) => void
null
Toggles the collapse state of a node.
isCollapsible(node?: TreeNode) => boolean
null
Checks if a node is collapsible.
isCollapsed(node?: TreeNode) => boolean
null
Checks if a node is collapsed.
isSelected(node?: TreeNode) => boolean
null
Checks if a node is selected.
isSelectable(node?: TreeNode) => boolean
null
Checks if a node is selectable.
handleNodeKeyDown(event: KeyboardEvent<HTMLDivElement>, key?: string) => void
null
Handles the key down event of a node.
handleCollapseKeyDown(event: KeyboardEvent<HTMLButtonElement>, key?: string) => void
null
Handles the key down event of a collapse button.

Interfaces#

Defines passthrough(pt) options of OrgChart component.

nametypedefaultdescription
rootOrgChartPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.
nodeOrgChartPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the node's DOM element.
subtreeOrgChartPassThroughType<HTMLAttributes<HTMLUListElement>>
null
Used to pass attributes to the subtree's DOM element.
treeOrgChartPassThroughType<HTMLAttributes<HTMLLIElement>>
null
Used to pass attributes to the tree's DOM element.

Types#

Instance of OrgChart component.

values
ComponentInstance<OrgChartProps, OrgChartState, OrgChartExposes>

OrgChartTree#

Props#

Defines valid properties in OrgChartTree component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: OrgChartTreeInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: OrgChartTreeInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<OrgChartTreePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: OrgChartTreeInstance) => ReactNode)
null
The children to render.
itemTreeNode
null
The item of the org chart tree.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by OrgChartTree component.

nametypedefaultdescription
orgchartOrgChartInstance
null
The parent OrgChart instance.
levelnumber
null
The level of the org chart tree.

Interfaces#

Defines passthrough(pt) options of OrgChartTree component.

nametypedefaultdescription
rootOrgChartTreePassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of OrgChartTree component.

values
ComponentInstance<OrgChartTreeProps, OrgChartTreeState, OrgChartTreeExposes>

OrgChartSubtree#

Props#

Defines valid properties in OrgChartSubtree component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: OrgChartSubtreeInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: OrgChartSubtreeInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<OrgChartSubtreePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: OrgChartSubtreeInstance) => ReactNode)
null
The children to render.
itemsTreeNode[]
null
The items of the org chart subtree.
rootboolean
null
Whether the org chart subtree is the root.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by OrgChartSubtree component.

nametypedefaultdescription
orgchartOrgChartInstance
null
The parent OrgChart instance.

Interfaces#

Defines passthrough(pt) options of OrgChartSubtree component.

nametypedefaultdescription
rootOrgChartSubtreePassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of OrgChartSubtree component.

values
ComponentInstance<OrgChartSubtreeProps, OrgChartSubtreeState, OrgChartSubtreeExposes>

OrgChartNode#

Props#

Defines valid properties in OrgChartNode component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: OrgChartNodeInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: OrgChartNodeInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<OrgChartNodePassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: OrgChartNodeInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by OrgChartNode component.

nametypedefaultdescription
orgchartOrgChartInstance
null
The parent OrgChart instance.

Interfaces#

Defines passthrough(pt) options of OrgChartNode component.

nametypedefaultdescription
rootOrgChartNodePassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of OrgChartNode component.

values
ComponentInstance<OrgChartNodeProps, OrgChartNodeState, OrgChartNodeExposes>

OrgChartNodeContent#

Props#

Defines valid properties in OrgChartNodeContent component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: OrgChartNodeContentInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: OrgChartNodeContentInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<OrgChartNodeContentPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: OrgChartNodeContentInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by OrgChartNodeContent component.

nametypedefaultdescription
orgchartOrgChartInstance
null
The parent OrgChart instance.

Interfaces#

Defines passthrough(pt) options of OrgChartNodeContent component.

nametypedefaultdescription
rootOrgChartNodeContentPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of OrgChartNodeContent component.

values
ComponentInstance<OrgChartNodeContentProps, OrgChartNodeContentState, OrgChartNodeContentExposes>

OrgChartCollapseButton#

Props#

Defines valid properties in OrgChartCollapseButton component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: OrgChartCollapseButtonInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: OrgChartCollapseButtonInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<OrgChartCollapseButtonPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: OrgChartCollapseButtonInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by OrgChartCollapseButton component.

nametypedefaultdescription
orgchartOrgChartInstance
null
The parent OrgChart instance.

Interfaces#

Defines passthrough(pt) options of OrgChartCollapseButton component.

nametypedefaultdescription
rootOrgChartCollapseButtonPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of OrgChartCollapseButton component.

values
ComponentInstance<OrgChartCollapseButtonProps, OrgChartCollapseButtonState, OrgChartCollapseButtonExposes>