Input Sequential
fun InputSequential(title: String, data: List<ImageCardData>, 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 sequential input component.
Parameters
title
: Label of the component.
data
: List of ImageCardData to show.
selected Data
: Selected ImageCardData, renders selected UI around that item.
modifier
: optional modifier.
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 mandatory.
test Tag
: optional tag for ui testing purposes.
on Selection Changed
: Callback to receive new selected item.
painter For
: mapped array for option icons.