Input Coordinate
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.
input Style
: manages the InputShell style.
supporting Text
: is a list of SupportingTextData that manages all the messages to be shown.
legend Data
: manages the legendComponent.
coordinates
: controls the latitude and longitude of the location.
latitude Text
: controls the text to be shown for the latitude label.
longitude Text
: controls the text to be shown for the longitude label.
add Location Btn Text
: controls the text to be shown for the add polygon button.
is Required
: controls whether the field is mandatory or not.
modifier
: allows a modifier to be passed externally.
on Reset Button Clicked
: callback to when reset button is clicked.
on Update Button Clicked
: callback to when add button or edit icon is clicked.