InfoBarData

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.

backgroundColor

: background color.

actionText

: the text to be used for action button.

onClick

: callback for the action button.

Constructors

Link copied to clipboard
constructor(text: String, icon: @Composable () -> Unit? = null, color: Color, backgroundColor: Color, actionText: String? = null, onClick: () -> Unit? = null)

Properties

Link copied to clipboard
val actionText: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val icon: @Composable () -> Unit? = null
Link copied to clipboard
val onClick: () -> Unit? = null
Link copied to clipboard