A.BooleanDataEditor Class
A base class for Boolean Data Editor.
Constructor
A.BooleanDataEditor
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Index
Methods
- _afterButtonSwitchActivatedChange
- _afterCheckedContentChange
- _afterEditedValueChange
- _afterInnerLabelLeftChange
- _afterInnerLabelRightChange
- _afterLabelChange
- _afterRequiredChange
- _afterUncheckedContentChange
- _afterVisibleChange
- _createSwitchButton
- _setContent
- _uiSetEditedValue
- _uiSetLabel
- _uiSetRequired
- _uiSetVisible
- _updateContent
- _validateContent
- destructor
- initializer
- isEmpty
- isValid
Properties
- ATTRS static
Methods
_afterButtonSwitchActivatedChange
-
event
Fired after the checkbox is clicked.
Parameters:
-
eventCustomEventThe fired event
_afterCheckedContentChange
()
protected
Fired after the checkedContent attribute is set.
_afterEditedValueChange
-
event
Fired after the editedValue attribute is set.
Parameters:
-
eventCustomEventThe fired event
_afterInnerLabelLeftChange
-
event
Fired after the innerLabelLeft attribute is set.
Parameters:
-
eventCustomEventThe fired event
_afterInnerLabelRightChange
-
event
Fired after the innerLabelRight attribute is set.
Parameters:
-
eventCustomEventThe fired event
_afterLabelChange
()
protected
Fired after the label attribute is set.
_afterRequiredChange
()
protected
Fired after the required attribute is set.
_afterUncheckedContentChange
()
protected
Fired after the uncheckedContent attribute is set.
_afterVisibleChange
()
protected
Fired after the visible attribute is set.
_createSwitchButton
()
Object
protected
Returns the switch button instance.
Returns:
_setContent
-
val
Sets content attributes like checkedContent and uncheckedContent.
Parameters:
-
valString | Node
Returns:
_uiSetEditedValue
-
editedValue
Updates the ui according to the value of the editedValue attribute.
Parameters:
-
editedValueObject
_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
_updateContent
()
protected
Updates the boolean data editor with the given content.
_validateContent
-
val
Validates content attributes like checkedContent and uncheckedContent.
Parameters:
-
val
Returns:
destructor
()
protected
Destructor lifecycle implementation for the A.DataEditor class.
Lifecycle.
initializer
()
protected
Constructor for the A.BooleanDataEditor. 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.BooleanDataEditor.