InputAge

fun InputAge(state: InputAgeState, onValueChanged: (AgeInputType?) -> Unit, onNextClicked: () -> Unit? = null, modifier: Modifier = Modifier)

DHIS2 Input Age Input field to enter age. It will format content based on given visual transformation. component uses Material 3 DatePicker input formats supported are mentioned in the age input ui model documentation. DatePicker Input mode will always follow locale format.

Parameters

state

: an InputAgeState with all the parameters for the input

modifier

: optional modifier.


fun InputAge(uiModel: InputAgeModel, modifier: Modifier = Modifier)

Deprecated

This component is deprecated and will be removed in the next release. Use InputAge instead.

DHIS2 Input Age component wraps DHIS2 InputShell. Users can enter their age either through Material 3's DatePicker or through a Unit Interval selector that can be TimeUnitValues.YEARS, TimeUnitValues.MONTHS or TimeUnitValues.DAYS.

Parameters

uiModel

: data class InputAgeModel with all parameters for component.

modifier

: optional modifier.