ControlContext

data class ControlContext(val localName: String, val statePath: String = "", val controlPath: String = "", val parent: ControlContext? = null)

Rendering and state context of a control in the form hierarchy.

Parameters

localName

Name of the control in its immediate context (e.g. "firstName", "publications").

statePath

Path to the parent container (e.g. "user", "publicationsuuid") for the state.

controlPath

Path to the parent container (e.g. "user", "publications") for the controls

parent

Rendering context of the parent control. Allows navigating up the tree.

Constructors

Link copied to clipboard
constructor(localName: String, statePath: String = "", controlPath: String = "", parent: ControlContext? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun forRepeatableChild(childLocalName: String, rowId: String): ControlContext

Creates the context of a child control in a repeatable container.

Link copied to clipboard
fun forSectionChild(childLocalName: String): ControlContext

Creates the context of a child control in a section. A section is one data level - like a repeatable row, only without [rowId] - so the child lies under section/name.