createRow

internal fun createRow(index: Int, parentContext: ControlContext, rowControls: Map<String, Control<*>>, formState: FormState, values: Map<String, Any?> = emptyMap()): RepeatableRow

Creates a new row and adds the states of its controls to the global FormState.

Return

the new row with its index set

Parameters

index

position of the row in the list

parentContext

context of the repeatable control

rowControls

map of the controls that make up the row

formState

global form state

values

initial values of the row's fields (key = control name), empty for a new row