Input Matrix
fun InputMatrix(title: String, data: List<ImageCardData>, itemCount: Int = 2, selectedData: ImageCardData? = null, modifier: Modifier = Modifier, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequired: Boolean = false, testTag: String = "", onSelectionChanged: (ImageCardData) -> Unit, painterFor: Map<String, Painter>? = null)
DHIS2 icon card matrix input component
Parameters
title
: Label of the component.
data
: List of ImageCardData to show.
item Count
: number of items.
selected Data
: Selected ImageCardData, renders selected UI around that item.
state
input Style
: manages the InputShell style.
supporting Text
: List of SupportingTextData that manages all the messages to be shown.
legend Data
: LegendData to be render below the input shell.
is Required
: Mark this input as marked.
test Tag
: optional tag for ui testing purposes.
on Selection Changed
: Callback to receive new selected item.
painter For
: is a composable function which controls how to paint the load param.
modifier
: optional modifier.