@moritzbrantner/diagrams - v0.1.1
GitHub
Preparing search index...
OrgChartProps
Type Alias OrgChartProps
OrgChartProps
:
React.ComponentProps
<
"div"
>
&
{
defaultExpandedDepth
?:
number
;
defaultExpandedIds
?:
readonly
string
[]
;
defaultFocusedNodeId
?:
string
|
null
;
emptyMessage
?:
React.ReactNode
;
expandedIds
?:
readonly
string
[]
;
focusedNodeId
?:
string
|
null
;
getNodeDisabled
?:
(
node
:
OrgChartNodeData
,
context
:
OrgChartRenderNodeContext
,
)
=>
boolean
;
keyboardMode
?:
OrgChartKeyboardMode
;
maxRenderedNodes
?:
number
;
nodeActions
?:
|
readonly
OrgChartNodeAction
[]
|
(
(
node
:
OrgChartNodeData
,
context
:
OrgChartRenderNodeContext
,
)
=>
readonly
OrgChartNodeAction
[]
)
;
nodes
?:
readonly
OrgChartNodeData
[]
;
onExpandedIdsChange
?:
(
nodeIds
:
string
[]
,
node
:
OrgChartNodeData
)
=>
void
;
onFocusedNodeIdChange
?:
(
nodeId
:
string
|
null
,
node
:
OrgChartNodeData
|
null
,
context
:
OrgChartRenderNodeContext
|
null
,
)
=>
void
;
onNodeActionSelect
?:
(
action
:
OrgChartNodeAction
,
node
:
OrgChartNodeData
,
context
:
OrgChartRenderNodeContext
,
)
=>
void
;
onNodeSelect
?:
(
node
:
OrgChartNodeData
,
context
:
OrgChartRenderNodeContext
,
)
=>
void
;
renderNode
?:
(
node
:
OrgChartNodeData
,
depth
:
number
,
context
:
OrgChartRenderNodeContext
,
)
=>
React.ReactNode
;
selectedNodeId
?:
string
|
null
;
}
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
GitHub
@moritzbrantner/diagrams - v0.1.1
Loading...