InfoBar

fun InfoBar(modifier: Modifier = Modifier, text: String, textColor: Color, backgroundColor: Color, displayProgress: Boolean = false, icon: @Composable () -> Unit? = null)

DHIS2 InfoBar. InfoBars provide brief messages about app status.

Parameters

modifier

: optional modifier.

text

: main text to be displayed within the item.

textColor

: text color.

backgroundColor

: background color.

icon

: the icon to be displayed before the text.

displayProgress

: whether to display a progress indicator on the top-end corner.


fun InfoBar(modifier: Modifier = Modifier, text: String, textColor: Color, actionText: String, backgroundColor: Color, icon: @Composable () -> Unit? = null, onActionClick: () -> Unit)

DHIS2 InfoBar. InfoBars provide brief messages about app status and provides an action button.

Parameters

modifier

: optional modifier.

text

: main text to be displayed within the item.

textColor

: text color.

backgroundColor

: background color.

icon

: the icon to be displayed before the text.

actionText

: the text to be used for action button.

onActionClick

: callback for the action button.


fun InfoBar(infoBarData: InfoBarData, modifier: Modifier = Modifier)

Deprecated

Use constructor without InfoBarData

DHIS2 InfoBar. InfoBars provide brief messages about app status.

Parameters

infoBarData

: a data class InfoBarData with all parameters for component.

modifier

: optional modifier.