Carousel Button Data
data class CarouselButtonData(val onClick: () -> Unit, val enabled: Boolean, val text: String, val icon: @Composable () -> Unit)
Data model used for DHIS2 CarouselButton component.
Parameters
on Click
: 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.