MenuItemData

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.

leadingElement

: controls the MenuLeadingElement.

trailingElement

: controls the MenuTrailingElement.

supportingText

: controls the supporting text to be shown.

showDivider

: 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)

Properties

Link copied to clipboard
val id: T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val showDivider: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val supportingText: String? = null
Link copied to clipboard