Data
OrganizationChart
A tree drawn as a chart, with nodes that fold and open, can be selected, and take a template per node type.
WAI-ARIA tested
Import
main.ts
import { OrganizationChart } from '@vitral/vue';Selectable and collapsible
- ALAna LimaCEO
- BCBruno CostaCTO
- Web
- Mobile
- CDCarla DiasCFO
- Finance
- Operations
API
Read from packages/vue/src/components/OrganizationChart/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| value | OrganizationChartNode | The top of the chart. |
| selectionMode | 'single' | 'multiple' | — |
| collapsible | boolean | Nodes can be folded away. |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Emits
| Event | Payload | Description |
|---|---|---|
| node-select | node: OrganizationChartNode | — |
| node-unselect | node: OrganizationChartNode | — |
| node-expand | node: OrganizationChartNode | — |
| node-collapse | node: OrganizationChartNode | — |
Slots
| Name | Slot props | Description |
|---|---|---|
| default | (props: { node: OrganizationChartNode }) | A node's content; a slot named after a node's `type` wins. |