kor TürkçeGitHub

OrgChart

Shows who reports to whom.

kor/ui/OrgChartSource

When to use

  • Use it for teams and open positions.

Examples

Sales team

Loading the example

<k:OrgChart press=".onPress" people="{path: '/people', templateShareable: false}"><k:OrgPerson key="{k}" managerKey="{m}" name="{n}" role="{r}" vacant="{v}"/></k:OrgChart>

API

Properties

NameTypeDefaultDescription
labelstringAccessible name
selectedKeystringSelected person
expandedLevelsint2Levels visible at first

Aggregations

NameTypeDescription
peopleOrgPerson[]A flat list. The chart is built from managerKey

Events

NameTypeDescription
presskey: stringA person was pressed

OrgPerson

A person or position in the chart.

Properties

NameTypeDefaultDescription
keystringKey
managerKeystringKey of the manager
namestringName
rolestringRole
vacantbooleanfalseWhether the position is open
statestringStatus. Hidden when empty
statusTextstringStatus text

Related

TreeGridTalentGrid