A.OptionsDataEditor Class
A base class for Options Data Editor.
Constructor
A.OptionsDataEditor
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Index
Methods
- _afterClickAddButton
- _afterEditedValueChange
- _afterLabelChange
- _afterRequiredChange
- _afterVisibleChange
- _createOptionNode
- _getOptionNodeIndex
- _moveItem
- _onClickRemoveButton
- _onDrag
- _onDragOver
- _onValueChange
- _removeOptionNode
- _setUpDrag
- _uiSetEditedValue
- _uiSetLabel
- _uiSetRequired
- _uiSetVisible
- destructor
- initializer
- isEmpty
- isValid
Properties
- ATTRS static
Attributes
Methods
_afterClickAddButton
()
protected
Fired after the button for adding options is clicked.
_afterEditedValueChange
-
event
Fired after the editedValue
attribute is set.
Parameters:
-
event
CustomEventThe fired event
_afterLabelChange
()
protected
<p>Fired after the <code>label</code> attribute is set.</p>
_afterRequiredChange
()
protected
<p>Fired after the <code>required</code> attribute is set.</p>
_afterVisibleChange
()
protected
<p>Fired after the <code>visible</code> attribute is set.</p>
_createOptionNode
-
text
Creates an option node.
Parameters:
-
text
String
Returns:
_getOptionNodeIndex
-
node
Gets the option node's index in the options list.
Parameters:
-
node
Node
_moveItem
-
from
-
to
Moves the item from an index to another in the items array.
_onClickRemoveButton
-
event
Fired when a button for removing an option is clicked.
Parameters:
-
event
EventFacade
_onDrag
-
event
Fired after the drag:drag
event is triggered.
Parameters:
-
event
EventFacade
_onDragOver
-
event
Fired after the drag:over
event is triggered.
Parameters:
-
event
EventFacade
_onValueChange
-
event
Fired when the value of one of the editors text fields changes.
Parameters:
-
event
EventFacade
_removeOptionNode
-
optionNode
Removes the given option node.
Parameters:
-
optionNode
Node
_setUpDrag
()
protected
Sets up everything needed for dragging options to different positions.
_uiSetEditedValue
-
editedValue
Updates the ui according to the value of the editedValue
attribute.
Parameters:
-
editedValue
Array
_uiSetLabel
-
label
<p>Updates the ui according to the value of the <code>label</code> attribute.</p>
Parameters:
-
label
String
_uiSetRequired
-
required
<p>Updates the ui according to the value of the <code>required</code> attribute.</p>
Parameters:
-
required
Object
_uiSetVisible
-
visible
<p>Updates the ui according to the value of the <code>visible</code> attribute.</p>
Parameters:
-
visible
Object
destructor
()
protected
<p>Destructor lifecycle implementation for the <code>A.DataEditor</code> class. Lifecycle.</p>
initializer
()
protected
Constructor for the A.OptionsDataEditor
. Lifecycle.
isEmpty
()
Boolean
Returns true
if this edited value has no elements.
Returns:
isValid
()
Boolean
If the Option Data Editor has a String in each option field this will return true.
Returns:
Properties
ATTRS
Object
static
Static property used to define the default attribute configuration
for the A.OptionsDataEditor
.