Card Detail
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
additional Info List
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
expand Label Text
the text to be shown for expand button
shrink Label Text
the text to be shown for shrink button
action Button
composable parameter for the sync button
modifier
allows a modifier to be passed externally