InputPolygon

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.

inputStyle

: manages the InputShell style.

supportingText

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

legendData

: manages the legendComponent.

polygonText

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

addPolygonBtnText

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

polygonAdded

: controls whether the polygon is added or not.

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.