InputCoordinate

fun InputCoordinate(title: String, state: InputShellState = InputShellState.UNFOCUSED, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, coordinates: Coordinates? = null, latitudeText: String = provideStringResource("latitude"), longitudeText: String = provideStringResource("longitude"), addLocationBtnText: String = provideStringResource("add_location"), isRequired: Boolean = false, modifier: Modifier = Modifier, onResetButtonClicked: () -> Unit, onUpdateButtonClicked: () -> Unit)

DHIS2 Input coordinate. Wraps DHIS · InputShell.

Parameters

title

: controls the text to be shown for the title.

state

: 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.

coordinates

: controls the latitude and longitude of the location.

latitudeText

: controls the text to be shown for the latitude label.

longitudeText

: controls the text to be shown for the longitude label.

addLocationBtnText

: controls the text to be shown for the add polygon button.

isRequired

: controls whether the field is mandatory or not.

modifier

: allows a modifier to be passed externally.

onResetButtonClicked

: callback to when reset button is clicked.

onUpdateButtonClicked

: callback to when add button or edit icon is clicked.