InputMultiSelection

fun InputMultiSelection(items: List<CheckBoxData>, title: String, state: InputShellState, supportingTextData: List<SupportingTextData>?, legendData: LegendData?, isRequired: Boolean, onItemsSelected: (List<CheckBoxData>) -> Unit, modifier: Modifier = Modifier, noResultsFoundString: String = provideStringResource("no_results_found"), searchToFindMoreString: String = provideStringResource("search_to_see_more"), doneButtonText: String = provideStringResource("done"), inputStyle: InputStyle = InputStyle.DataInputStyle(), onClearItemSelection: () -> Unit)

DHIS2 input multi selection component. wraps DHIS2 InputShell.

Parameters

items

: list of CheckBoxData for selectable items.

title

: label of the component.

inputStyle

: manages the InputShell style.

supportingTextData

: list of SupportingTextData that manages all the messages to be shown.

legendData

: LegendData to be render below the input shell.

isRequired

: mark this input as required.

onItemsSelected

: callback to items are selected.

modifier

: optional modifier.

noResultsFoundString

: text to be shown in pop up when no results are found.

doneButtonText

: text to be shown for accept button in pop up.

onClearItemSelection

: callback for clear item selection.