CardDetail

fun CardDetail(avatar: @Composable () -> Unit? = null, title: String, additionalInfoList: List<AdditionalInfoItem>, actionButton: @Composable () -> Unit? = null, expandLabelText: String = provideStringResource("show_more"), shrinkLabelText: String = provideStringResource("show_less"), showLoading: Boolean = false, modifier: Modifier = Modifier)

DHIS2 CardDetail. Component intended for TEI Dashboard

Parameters

title

is the card title

additionalInfoList

is a list of AdditionalInfoItem that manages all the key value types that will be shown if there are more than three items that are not constant a show more/less button will appear and the rest of items will be hidden

expandLabelText

the text to be shown for expand button

shrinkLabelText

the text to be shown for shrink button

actionButton

composable parameter for the sync button

modifier

allows a modifier to be passed externally