getRowTypes
internal fun getRowTypes(controlState: ControlState<List<RepeatableRow>>, controlContext: ControlContext, rowControls: Map<String, Control<*>>, formState: FormState): Triple<List<RepeatableRow>, List<RepeatableRow>, List<RepeatableRow>>
Analyzes the state of a repeatable control and classifies the rows by operation type. Works on the global form state.
Return
Triple(new rows, deleted rows, changed rows)
Parameters
controlState
state of the repeatable control
controlContext
context of the repeatable control (for building hierarchical names)
rowControls
map of the controls in a row
formState
global form state