InputCustomIntent

fun InputCustomIntent(title: String, buttonText: String, values: List<String>, onLaunch: () -> Unit, onClear: () -> Unit = {}, customIntentState: CustomIntentState = LAUNCH, inputShellState: InputShellState = InputShellState.UNFOCUSED, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequired: Boolean = false, modifier: Modifier = Modifier)

DHIS2 Input Custom Intent. Wraps DHIS · InputShell.

Parameters

title

: controls the text to be shown for the title.

buttonText

: controls the text to be shown for the button.

values

: Is a list of strings to be shown for the values.

onLaunch

: callback for user to launch the intent.

onClear

: callback for user to delete the values.

customIntentState

: the state of the component, can be LOADING, LOADED or LAUNCH.

inputShellState

: Manages the InputShell state.

inputStyle

: manages the InputShell style.

supportingText

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

legendData

: manages the legendComponent.

isRequired

: whether the field is required or not.

modifier

: allows a modifier to be passed externally.