OrganizationChart의 API 문서예요. OrganizationChartRoot, OrganizationChartNodes, OrganizationChartNode처럼 컴포넌트를 구성하는 각 파트의 Props, State, Exposes(노출된 메서드)를 표로 정리했어요. selectionKeys, collapsedKeys 같은 상태 관리와 getNodes, findNodeByKey 같은 헬퍼 메서드를 참고하면 커스터마이즈할 때 헤매지 않아요.
출처: 문서
본문
OrganizationChart 컴포넌트의 API 문서예요.
OrganizationChartRoot
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartRootInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartRootInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartRootInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartRootInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
any |
null |
렌더링할 자식 요소예요. |
정적 콘텐츠에는 React.ReactNode를, 인스턴스 접근에는 렌더 함수 (instance: I) => React.ReactNode를 받아요.
템플릿에서 직접 사용할 때 JSX 타입 오류를 피하려고 any로 타입이 지정돼 있어요. |
| value | TreeNode[] | null | 조직도의 데이터예요. |
| gap | number | number[] | [40, 56] | 노드 사이 간격이에요. 단일 값 또는 [x, y]로 지정해요. |
| selectionMode | "checkbox" | "multiple" | "single" | null | 선택 모드예요. 생략하면 노드를 선택할 수 없어요. checkbox는 선택을 하위 노드로 캐스케이드하고 조상 노드에 부분 선택 상태를 반영해요. |
| collapsedKeys | OrganizationChartCollapsedKeys | null | 제어(controlled) 방식의 접힘 키예요. true인 키는 접히고, 없는 키는 펼쳐져요. |
| defaultCollapsedKeys | OrganizationChartCollapsedKeys | null | 비제어(uncontrolled) 모드의 초기 접힘 키예요. |
| onCollapsedChange | (event: UseOrganizationChartCollapsedChangeEvent) => void | null | 접힘 상태가 바뀔 때 호출돼요. |
| selectionKeys | OrganizationChartSelectionKeys | null | 제어(controlled) 방식의 선택 키예요. |
| defaultSelectionKeys | OrganizationChartSelectionKeys | null | 비제어(uncontrolled) 모드의 초기 선택 키예요. |
| onSelectionChange | (event: UseOrganizationChartSelectionChangeEvent) => void | null | 선택 상태가 바뀔 때 호출돼요. |
| [key: string] | any | null | |
| pt-{optionName}-* | - | null | 컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
State
| Name |
Type |
Default |
Description |
| collapsedKeys |
OrganizationChartCollapsedKeys |
null |
현재 접힘 키예요. |
| selectionKeys |
OrganizationChartSelectionKeys |
null |
현재 선택 키예요. |
Exposes
| Name |
Type |
Default |
Description |
| getNodes |
() => TreeNode[] |
null |
조직도 노드(원래 value)를 반환해요. |
| findNodeByKey |
(key: string) => undefined | TreeNode |
null |
키로 노드를 찾아요. |
| getNodeLevel |
(key: string) => number |
null |
키로 노드의 1 기반 깊이를 반환해요. |
| toggleNodeSelect |
(key?: string, event?: SyntheticEvent<Element, Event>) => void |
null |
노드의 선택 상태를 토글해요(selectionMode를 존중해요). |
| toggleNodeCollapse |
(key?: string, event?: SyntheticEvent<Element, Event>) => void |
null |
노드의 접힘 상태를 토글해요. |
| isExpandable |
(node?: TreeNode) => boolean |
null |
노드를 펼치거나 접을 수 있는지(자식이 있는지) 여부예요. |
| isSelectable |
() => boolean |
null |
노드를 선택할 수 있는지(selectionMode가 설정됐는지) 여부예요. |
| isCollapsed |
(node?: TreeNode) => boolean |
null |
노드가 접혀 있는지 여부예요. |
| isSelected |
(node?: TreeNode) => boolean |
null |
노드가 선택됐는지 여부예요. |
| isPartiallySelected |
(node?: TreeNode) => boolean |
null |
노드가 부분 선택됐는지(체크박스 모드) 여부예요. |
| rootProps |
{ data-scope: "organizationchart"; data-part: "root"; role: "tree"; aria-multiselectable: boolean } |
null |
루트 요소용으로 미리 만들어진 props를 반환해요. |
| getTreeProps |
(node: undefined | TreeNode, level: number) => UseOrganizationChartTreeProps |
null |
트리(연결선 래퍼) 요소용으로 미리 만들어진 props를 반환해요. |
| getNodeProps |
(node: undefined | TreeNode, handleClick: (event: MouseEvent) => void) => UseOrganizationChartNodeProps |
null |
노드 요소용으로 미리 만들어진 props를 반환해요. |
| getCollapseButtonProps |
(node: undefined | TreeNode, handleClick: (event: MouseEvent) => void) => { data-scope: "organizationchart"; data-part: "toggle"; onClick: (event: MouseEvent) => void; onKeyDown: (event: KeyboardEvent) => void } |
null |
접기 토글 버튼 요소용으로 미리 만들어진 props를 반환해요. |
| getToggleIndicatorProps |
() => { data-scope: "organizationchart"; data-part: "toggle-indicator"; aria-hidden: true } |
null |
토글 표시기(상태에 맞는 아이콘 슬롯) 요소용으로 미리 만들어진 props를 반환해요. |
| subtreeProps |
{ data-scope: "organizationchart"; data-part: "subtree"; role: "group" } |
null |
자식 하위 트리 요소용으로 미리 만들어진 props예요. |
| orgChartStyle |
CSSProperties |
null |
설정된 gap을 위한 CSS 커스텀 프로퍼티예요. |
| handleNodeKeyDown |
(event: KeyboardEvent, key?: string) => void |
null |
노드에서 키 다운을 처리해요. |
| handleCollapseKeyDown |
(event: KeyboardEvent, key?: string) => void |
null |
접기 버튼에서 키 다운을 처리해요. |
| state |
OrganizationChartRootState |
null |
OrganizationChart 컴포넌트의 상태예요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChart 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
Types
| Label |
Description |
Data |
| Instance |
OrganizationChart 컴포넌트의 인스턴스예요. |
[object Object] |
OrganizationChartNodes
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartNodesInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartNodesInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartNodesInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartNodesInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
ReactNode | ((row: OrganizationChartNodeRow) => ReactNode) |
null |
렌더 prop이에요. 노드마다 행(row) 페이로드와 함께 한 번 호출되며, 노드 UI를 반환해야 해요. |
| [key: string] |
any |
null |
|
| pt-{optionName}-* |
- |
null |
컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChartNodes 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
Types
| Label |
Description |
Data |
| Instance |
OrganizationChartNodes 컴포넌트의 인스턴스예요. |
[object Object] |
OrganizationChartNode
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartNodeInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartNodeInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartNodeInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartNodeInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
any |
null |
렌더링할 자식 요소예요. |
정적 콘텐츠에는 React.ReactNode를, 인스턴스 접근에는 렌더 함수 (instance: I) => React.ReactNode를 받아요.
템플릿에서 직접 사용할 때 JSX 타입 오류를 피하려고 any로 타입이 지정돼 있어요. |
| uKey | string | '' | 데이터에서 이 노드를 식별하는 고유 키예요. headless 레이어에서 노드 상태를 해석하는 데 사용해요. |
| [key: string] | any | null | |
| pt-{optionName}-* | - | null | 컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
Exposes
| Name |
Type |
Default |
Description |
| node |
undefined | TreeNode |
null |
해석된 노드 데이터예요. 키를 모르면 undefined예요. |
| expanded |
boolean |
null |
노드가 펼쳐져 있는지(접히지 않았는지) 여부예요. |
| leaf |
boolean |
null |
노드에 자식이 없는지 여부예요. |
| selected |
boolean |
null |
노드가 선택됐는지 여부예요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChartNode 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
Types
| Label |
Description |
Data |
| Instance |
OrganizationChartNode 컴포넌트의 인스턴스예요. |
[object Object] |
OrganizationChartContent
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartContentInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartContentInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartContentInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartContentInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
any |
null |
렌더링할 자식 요소예요. |
정적 콘텐츠에는 React.ReactNode를, 인스턴스 접근에는 렌더 함수 (instance: I) => React.ReactNode를 받아요.
템플릿에서 직접 사용할 때 JSX 타입 오류를 피하려고 any로 타입이 지정돼 있어요. |
| [key: string] | any | null | |
| pt-{optionName}-* | - | null | 컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChartContent 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
OrganizationChartLabel
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartLabelInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartLabelInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartLabelInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartLabelInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
any |
null |
렌더링할 자식 요소예요. |
정적 콘텐츠에는 React.ReactNode를, 인스턴스 접근에는 렌더 함수 (instance: I) => React.ReactNode를 받아요.
템플릿에서 직접 사용할 때 JSX 타입 오류를 피하려고 any로 타입이 지정돼 있어요. |
| [key: string] | any | null | |
| pt-{optionName}-* | - | null | 컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChartLabel 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
OrganizationChartToggle
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartToggleInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartToggleInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartToggleInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartToggleInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
any |
null |
렌더링할 자식 요소예요. |
정적 콘텐츠에는 React.ReactNode를, 인스턴스 접근에는 렌더 함수 (instance: I) => React.ReactNode를 받아요.
템플릿에서 직접 사용할 때 JSX 타입 오류를 피하려고 any로 타입이 지정돼 있어요. |
| [key: string] | any | null | |
| pt-{optionName}-* | - | null | 컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
Exposes
| Name |
Type |
Default |
Description |
| isExpanded |
boolean |
null |
연관된 노드가 펼쳐져 있는지(접히지 않았는지) 여부예요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChartToggle 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
OrganizationChartToggleIndicator
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartToggleIndicatorInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartToggleIndicatorInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartToggleIndicatorInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartToggleIndicatorInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
any |
null |
렌더링할 자식 요소예요. |
정적 콘텐츠에는 React.ReactNode를, 인스턴스 접근에는 렌더 함수 (instance: I) => React.ReactNode를 받아요.
템플릿에서 직접 사용할 때 JSX 타입 오류를 피하려고 any로 타입이 지정돼 있어요. |
| match | OrganizationChartToggleIndicatorMatch | 'always' | 토글 상태가 일치할 때만 이 슬롯을 렌더링해요. always는 상태와 무관하게 렌더링해요. |
| [key: string] | any | null | |
| pt-{optionName}-* | - | null | 컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChartToggleIndicator 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
Types
| Label |
Description |
Data |
| Instance |
OrganizationChartToggleIndicator 컴포넌트의 인스턴스예요. |
[object Object] |
OrganizationChartSelection
Props
| Name |
Type |
Default |
Description |
| ref |
Ref |
null |
컴포넌트 인스턴스에 대한 참조예요. |
| pIf |
boolean |
true |
컴포넌트를 렌더링할지 여부예요. |
| style |
CSSProperties | ((instance?: OrganizationChartSelectionInstance) => undefined | CSSProperties) |
null |
컴포넌트에 적용할 스타일이에요. |
| className |
string | ((instance?: OrganizationChartSelectionInstance) => undefined | string) |
null |
컴포넌트에 적용할 클래스 이름이에요. |
| as |
null | string | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent | ReactElement<unknown, string | JSXElementConstructor> | Iterable<ReactNode, any, any> | ReactPortal | Promise |
null |
렌더링할 컴포넌트 타입이에요. |
| asChild |
boolean |
false |
컴포넌트를 자식 컴포넌트로 렌더링할지 여부예요. |
| instance |
OrganizationChartSelectionInstance |
null |
컴포넌트에 전달할 인스턴스예요. |
| pt |
SafeRecord |
null |
컴포넌트에 전달할 pass-through props예요. |
| ptOptions |
PassThroughOptions |
null |
컴포넌트에 전달할 pass-through 옵션이에요. |
| unstyled |
boolean |
null |
클래스 없이 렌더링할지 여부예요. |
| dt |
unknown |
null |
컴포넌트에 사용할 디자인 토큰이에요. |
| styles |
StylesOptions |
null |
컴포넌트에 사용할 스타일이에요. |
| render |
(instance: OrganizationChartSelectionInstance) => ReactNode |
null |
인스턴스에 접근해 컴포넌트를 렌더링하는 렌더 함수예요. |
| children |
any |
null |
렌더링할 자식 요소예요. |
정적 콘텐츠에는 React.ReactNode를, 인스턴스 접근에는 렌더 함수 (instance: I) => React.ReactNode를 받아요.
템플릿에서 직접 사용할 때 JSX 타입 오류를 피하려고 any로 타입이 지정돼 있어요. |
| [key: string] | any | null | |
| pt-{optionName}-* | - | null | 컴포넌트 커스터마이즈용 pass-through 속성이에요. 자세한 내용은 Pass Through 탭을 참고해요. |
Exposes
| Name |
Type |
Default |
Description |
| isSelected |
boolean |
null |
현재 노드가 선택됐는지 여부예요. |
| isPartiallySelected |
boolean |
null |
현재 노드가 부분 선택됐는지(체크박스 모드 — 자식 중 일부만 선택) 여부예요. |
| isSelectable |
boolean |
null |
현재 노드를 선택할 수 있는지 여부예요. |
| toggle |
(event: SyntheticEvent) => void |
null |
현재 노드의 선택을 토글해요. |
Interfaces
| Label |
Description |
Data |
| PassThroughOptions |
OrganizationChartSelection 컴포넌트의 passthrough(pt) 옵션을 정의해요. |
[object Object] |
더 알아보기 (Learn more)