Button
DHIS2 button with generic icon slot. wraps DHIS2 SimpleButton which in turn wraps material 3 Button.
Parameters
: optional Modifier.
: Controls the state of the button.
: The button icon content.
: optional PaddingValues to be overridden.
:Will be called when the user clicks the button.
Deprecated
Use constructor with ButtonState instead
Replace with
Button(modifier = modifier, state = ButtonState(text = text, enabled = enabled, style = style, colorStyle = colorStyle), icon = icon, paddingValues = paddingValues, onClick = onClick)DHIS2 button with generic icon slot. wraps DHIS2 SimpleButton which in turn wraps material 3 Button.
Parameters
: Controls the enabled state of the button. When false, this button will not be clickable and will appear disabled to accessibility services.
: Controls style of the button. Will be OUTLINED by default, but can be FILLED, TEXT, TONAL, ELEVATED or KEYBOARDKEY.
: the button color style to be used, can be ColorStyle.DEFAULT or ColorStyle.ERROR.
: The text to display within.
: The button icon content.
: optional PaddingValues to be overridden.
: optional Modifier.
:Will be called when the user clicks the button.