Input Polygon
fun InputPolygon(title: String, state: InputShellState = InputShellState.UNFOCUSED, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, polygonText: String? = provideStringResource("polygon_captured"), addPolygonBtnText: String = provideStringResource("add_polygon"), polygonAdded: Boolean = false, isRequired: Boolean = false, modifier: Modifier = Modifier, onResetButtonClicked: () -> Unit, onUpdateButtonClicked: () -> Unit)
DHIS2 Input polygon. 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.
polygon Text
: controls the text to be shown for the polygon label.
add Polygon Btn Text
: controls the text to be shown for the add polygon button.
polygon Added
: controls whether the polygon is added or not.
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.