InputPhoneNumber

fun InputPhoneNumber(title: String, onCallActionClicked: () -> Unit, modifier: Modifier = Modifier, maxLength: Int = 12, minLength: Int = 4, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), legendData: LegendData? = null, inputTextFieldValue: TextFieldValue? = null, isRequiredField: Boolean = false, autoCompleteList: List<String>? = null, autoCompleteItemSelected: (String?) -> Unit? = null, onNextClicked: () -> Unit? = null, onValueChanged: (TextFieldValue?) -> Unit? = null, onFocusChanged: (Boolean) -> Unit = {}, imeAction: ImeAction = ImeAction.Next, supportingText: List<SupportingTextData>? = emptyList(), allowedCharacters: RegExValidations = RegExValidations.PHONE_NUMBER)

DHIS2 Input Phone Number. Wraps DHIS · BasicTextInput. Input that allows only numeric values for entering phone number.

Parameters

title

: controls the text to be shown for the title.

onCallActionClicked

: callback to when call phone number button is clicked.

modifier

: allows a modifier to be passed externally.

maxLength

: number of characters/digits that can be entered.

minLength

: number of characters/digits that needs be entered to enable phone button.

state

: Manages the InputShell state.

inputStyle

: manages the InputShell style.

legendData

: manages the legendComponent.

inputTextFieldValue

: manages the value of the text in the input field.

isRequiredField

: controls whether the field is mandatory or not.

autoCompleteList

: List of strings to be used for autocomplete dropdown.

autoCompleteItemSelected

: gives access to the autocomplete item selection.

onNextClicked

: gives access to the imeAction event.

onValueChanged

: gives access to the onValueChanged event.

onFocusChanged

: gives access to the onFocusChanged returns true if item is focused.

imeAction

: controls the imeAction button to be shown.

allowedCharacters

: the characters to allow.

supportingText

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