Input Multi Selection
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.
state
input Style
: manages the InputShell style.
supporting Text Data
: 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 required.
on Items Selected
: callback to items are selected.
modifier
: optional modifier.
no Results Found String
: text to be shown in pop up when no results are found.
done Button Text
: text to be shown for accept button in pop up.
on Clear Item Selection
: callback for clear item selection.