Button State
data class ButtonState(val text: String, val textColor: Color = Color.Unspecified, val enabled: Boolean = true, val style: ButtonStyle = ButtonStyle.OUTLINED, val colorStyle: ColorStyle = ColorStyle.DEFAULT)
DHIS2 ButtonState
Parameters
text
The text to display within.
text Color
The color for the text to be used
enabled
Controls the enabled state of the button. When false, this button will not be clickable and will appear disabled to accessibility services.
style
Controls style of the button. Will be OUTLINED by default, but can be FILLED, TEXT, TONAL, ELEVATED or KEYBOARDKEY.
color Style
the button color style to be used, can be ColorStyle.DEFAULT or ColorStyle.ERROR.
Constructors
Link copied to clipboard
constructor(text: String, textColor: Color = Color.Unspecified, enabled: Boolean = true, style: ButtonStyle = ButtonStyle.OUTLINED, colorStyle: ColorStyle = ColorStyle.DEFAULT)