OrgChart
Shows who reports to whom.
kor/ui/OrgChartSource
When to use
- Use it for teams and open positions.
Examples
Sales team
<k:OrgChart press=".onPress" people="{path: '/people', templateShareable: false}"><k:OrgPerson key="{k}" managerKey="{m}" name="{n}" role="{r}" vacant="{v}"/></k:OrgChart>
sap.ui.define(["sap/ui/core/mvc/Controller", "kor/ui/Toast"], (Controller, Toast) => Controller.extend("sample.Team", {
onPress(event) {
Toast.show(String(event.getParameter("key")));
}
}));
API
Properties
| Name | Type | Default | Description |
|---|
label | string | | Accessible name |
selectedKey | string | | Selected person |
expandedLevels | int | 2 | Levels visible at first |
Aggregations
| Name | Type | Description |
|---|
people | OrgPerson[] | A flat list. The chart is built from managerKey |
Events
| Name | Type | Description |
|---|
press | key: string | A person was pressed |
OrgPerson
A person or position in the chart.
Properties
| Name | Type | Default | Description |
|---|
key | string | | Key |
managerKey | string | | Key of the manager |
name | string | | Name |
role | string | | Role |
vacant | boolean | false | Whether the position is open |
state | string | | Status. Hidden when empty |
statusText | string | | Status text |
Related
TreeGridTalentGrid