CarouselButtonData

data class CarouselButtonData(val onClick: () -> Unit, val enabled: Boolean, val text: String, val icon: @Composable () -> Unit)

Data model used for DHIS2 CarouselButton component.

Parameters

onClick

: Will be called when the user clicks the button.

enabled

: Controls the enabled state of the component. When false, this button will not be clickable and will appear disabled to accessibility services.

text

: the text to be displayed.

icon

: the icon to be used.

Constructors

Link copied to clipboard
constructor(onClick: () -> Unit, enabled: Boolean, text: String, icon: @Composable () -> Unit)

Properties

Link copied to clipboard
Link copied to clipboard
val icon: @Composable () -> Unit
Link copied to clipboard
val onClick: () -> Unit
Link copied to clipboard