initializeStates

internal fun initializeStates(schema: FormSchema, initValues: Map<String, Any?>)

Initializes the states of all controls from the initial values.

Parameters

schema

Form schema with the control definitions.

initValues

Map of initial values (key = control name).

Throws

when the values do not fit the schema.