A.DataTable.CellEditorSupport Class
An extension for A.DataTable to support Cell Editing.
Constructor
A.DataTable.CellEditorSupport
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Methods
_afterCellEditorSupportRender
()
protected
Fires after the A.CellEditorSupport has rendered, and calls
_syncModelsReadOnlyUI.
_afterSelectionKey
-
event
Fires after '_onSelectionKey'. Opens editor of 'activeCell' on key press.
Parameters:
-
eventEventFacade
_onEditCell
-
event
render() and show() the A.BaseCellEditor, of the active table cell.
Called when active table cell is clicked (default).
Parameters:
-
eventEventFacadeThe event defined in attribute
editEvent.
_onEditorCancel
()
protected
Invoked when the editor fires the 'cancel' event.
_onEditorSave
-
event
Invoked when the editor fires the 'save' event.
Parameters:
-
eventEventFacade
_onEditorVisibleChange
-
event
Calls _syncFocus if the A.BaseCellEditor input has a new value.
Called on the visibleChange event.
Parameters:
-
eventEventFacade
_refocusActiveCell
()
protected
Places keyboard focus onto the last active cell.
_syncModelReadOnlyUI
-
model
Toggles the row's read-only class. Toggle determined by the readOnly
attribute of the Model.
Parameters:
-
modelModel
_syncModelsReadOnlyUI
()
protected
Calls _syncModelReadOnlyUI for each Model in the data attribute.
getCellEditor
()
BaseCellEditor
deprecated
static
Forwards method call to getEditor.
Returns:
See getEditor
getRecordColumnValue
-
record -
column
Syntactic sugar for record.get(column.key).
Parameters:
-
recordModel -
columnObjectColumn configuration.
Returns:
Record column key.
initializer
()
protected
Construction logic executed during A.CellEditorSupport instantiation.
Lifecycle.
Properties
ATTRS
Object
static
Static property used to define the default attribute configuration for the
A.CellEditorSupport.
EDITOR_ZINDEX
Number
static
Number which provides a z-index style value for the A.BaseCellEditor.
Default: 9999
NAME
String
static
Static property provides a string to identify the class.