OrgTreeItem

data class OrgTreeItem(val uid: String, val label: String, var isOpen: Boolean = true, val hasChildren: Boolean = false, val selected: Boolean = false, val level: Int = 0, val selectedChildrenCount: Int = 0, val canBeSelected: Boolean = true)

Data class used for OrgBottomSheet used to hold information on Organisation Units.

Parameters

uid

: the item uid.

label

: item label.

isOpen

: whether the org unit is open or not.

hasChildren

: whether the org unit has children or not.

selected

: whether the org unit is selected or not.

level

: the hierarchy level of the item.

selectedChildrenCount

: number of selected children.

canBeSelected

: whether the item is selectable or not.

Constructors

Link copied to clipboard
constructor(uid: String, label: String, isOpen: Boolean = true, hasChildren: Boolean = false, selected: Boolean = false, level: Int = 0, selectedChildrenCount: Int = 0, canBeSelected: Boolean = true)

Properties

Link copied to clipboard
Link copied to clipboard
val hasChildren: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val level: Int = 0
Link copied to clipboard
val selected: Boolean = false
Link copied to clipboard
Link copied to clipboard
val uid: String