A.DataEditor Class
A base class for Data Editor. All data editors should extend from this.
Constructor
A.DataEditor
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Methods
_afterLabelChange
()
protected
Fired after the label attribute is set.
_afterRequiredChange
()
protected
Fired after the required attribute is set.
_afterVisibleChange
()
protected
Fired after the visible attribute is set.
_uiSetLabel
-
label
Updates the ui according to the value of the label attribute.
Parameters:
-
labelString
_uiSetRequired
-
required
Updates the ui according to the value of the required attribute.
Parameters:
-
requiredObject
_uiSetVisible
-
visible
Updates the ui according to the value of the visible attribute.
Parameters:
-
visibleObject
destructor
()
protected
Destructor lifecycle implementation for the A.DataEditor class.
Lifecycle.
initializer
()
protected
Constructor for the A.DataEditor. Lifecycle.
isEmpty
()
Returns true if this edited value has no elements.
This should be overridden by subclasses, otherwise it always returns false.
isValid
()
Boolean
If the data editor is required and empty this will return false.
Returns:
Properties
ATTRS
Object
static
Static property used to define the default attribute configuration
for the A.DataEditor.