Menu Item Data
data class MenuItemData<T>(val id: T, val label: String, val state: MenuItemState = MenuItemState.ENABLED, val style: MenuItemStyle = MenuItemStyle.DEFAULT, val leadingElement: MenuLeadingElement? = null, val trailingElement: MenuTrailingElement? = null, val supportingText: String? = null, val showDivider: Boolean = false)
DHIS2 MenuItemData, class to control the MenuItem
Parameters
label
: controls the text to be shown.
state
: controls the MenuItem state.
style
: controls the MenuItem style.
leading Element
: controls the MenuLeadingElement.
trailing Element
: controls the MenuTrailingElement.
supporting Text
: controls the supporting text to be shown.
show Divider
: controls whether a divider should be shown.
Constructors
Link copied to clipboard
constructor(id: T, label: String, state: MenuItemState = MenuItemState.ENABLED, style: MenuItemStyle = MenuItemStyle.DEFAULT, leadingElement: MenuLeadingElement? = null, trailingElement: MenuTrailingElement? = null, supportingText: String? = null, showDivider: Boolean = false)