Info Bar Data
data class InfoBarData(val text: String, val icon: @Composable () -> Unit? = null, val color: Color, val backgroundColor: Color, val actionText: String? = null, val onClick: () -> Unit? = null)
Data model used for DHIS2 InfoBar component.
Parameters
text
: main text to be displayed within the item.
icon
: the icon to be displayed.
color
: text color.
background Color
: background color.
action Text
: the text to be used for action button.
on Click
: callback for the action button.