Info Bar
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.
text Color
: text color.
background Color
: background color.
icon
: the icon to be displayed before the text.
display Progress
: 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.
text Color
: text color.
background Color
: background color.
icon
: the icon to be displayed before the text.
action Text
: the text to be used for action button.
on Action Click
: callback for the action button.