Class ox.UI.Controller
Abstract base class of all controllers.
Controllers are responsible for connecting widgets to the data model.
Defined in: configuration.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
get(data, value)
Adds a child value to a container value.
|
|
set(data)
Extracts a child value from a container value.
|
Method Detail
get(data, value)
Adds a child value to a container value.
- Parameters:
- data
- The value of the container.
- value
- The value of the child widget.
set(data)
Extracts a child value from a container value.
Throws ox.UI.Controller.InvalidData if the extracted data is invalid.
- Parameters:
- data
- The value of the container.
- Returns:
- The value of the child widget, or undefined if the default value of the widget should be used.