Show:

An extension for A.DataTable to support Cell Editing.

Constructor

A.DataTable.CellEditorSupport

(
  • config
)

Parameters:

  • config Object

    Object literal specifying widget configuration properties.

Methods

_afterCellEditorSupportRender

() protected

Fires after the A.CellEditorSupport has rendered, and calls _syncModelsReadOnlyUI.

_afterSelectionKey

(
  • event
)
protected

Fires after '_onSelectionKey'. Opens editor of 'activeCell' on key press.

Parameters:

_onEditCell

(
  • event
)
protected

render() and show() the A.BaseCellEditor, of the active table cell.

Called when active table cell is clicked (default).

Parameters:

  • event EventFacade

    The event defined in attribute editEvent.

_onEditorCancel

() protected

Invoked when the editor fires the 'cancel' event.

_onEditorSave

(
  • event
)
protected

Invoked when the editor fires the 'save' event.

Parameters:

_onEditorVisibleChange

(
  • event
)
protected

Calls _syncFocus if the A.BaseCellEditor input has a new value.

Called on the visibleChange event.

Parameters:

_refocusActiveCell

() protected

Places keyboard focus onto the last active cell.

_syncModelReadOnlyUI

(
  • model
)
protected

Toggles the row's read-only class. Toggle determined by the readOnly attribute of the Model.

Parameters:

_syncModelsReadOnlyUI

() protected

Calls _syncModelReadOnlyUI for each Model in the data attribute.

getCellEditor

() BaseCellEditor deprecated static

Defined in alloy-ui/src/aui-datatable/js/aui-datatable-cell-editor-support.js:271

Deprecated: Use `getEditor` instead.

Forwards method call to getEditor.

Returns:

BaseCellEditor:

See getEditor

getRecordColumnValue

(
  • record
  • column
)
String deprecated

Syntactic sugar for record.get(column.key).

Parameters:

  • record Model
  • column Object

    Column configuration.

Returns:

String:

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.

Attributes

editEvent

String

Defines the event which displays the A.BaseCellEditor.

Default: 'click'