A.DataTableSelection Class
A base class for DataTableSelection.
Constructor
A.DataTableSelection
-
config
Parameters:
-
configObjectObject literal specifying widget configuration properties.
Methods
_afterActiveCoordChange
-
event
Focus the active cell on datatable sorting.
Parameters:
-
eventEventFacade
_bindSelectionUI
()
protected
Bind the selection UI.
_getActiveCell
()
protected
Return the active cell.
_getActiveRow
()
protected
Return the active row.
_onSelectionKey
-
event
Fires on key event with the listened selection keys.
Parameters:
-
eventEventFacade
_parseRange
-
val
Parse selection coordinates range.
Parameters:
-
valArray
Returns:
coords
_setColumns
()
protected
DataTable columns configuration breaks on n-depth cloning complex objects See http://yuilibrary.com/projects/yui3/ticket/2532597
_setSelection
-
val
Set selection.
Parameters:
-
valObject
Returns:
Selected cells and rows.
captureSelection
-
coords
Return the selected cells and within the coordinates coords.
Parameters:
-
coordsObjectCell coordinates.
Returns:
Selected cells and rows.
destroy
()
protected
Destructor lifecycle implementation for the A.DataTableSelection class.
Detaches _selectionKeyHandler event listener.
getActiveColumn
()
Object
Gets the active column based off the activeCell attribute.
Returns:
Active column.
getActiveRecord
()
Object
Gets the active record based odd the activeRow attribute.
Returns:
Active record.
getColumn
-
seed
Calculate and return the column based on the passed seed.
Parameters:
-
seedNode
Returns:
Column.
getCoord
-
seed
Gets the cell coordinates of the passed seed.
Parameters:
-
seedNode
Returns:
Cell coordinates.
getRow
-
seed
Return the row based on the passed seed.
Add support to get a row by seed on DataTable getRow See http://yuilibrary.com/projects/yui3/ticket/2532605
Parameters:
-
seedNode
Returns:
Row.
initializer
()
protected
Construction logic executed during A.DataTableSelection instantiation.
Lifecycle.
Properties
ATTRS
Object
static
Static property used to define the default attribute
configuration for the A.DataTableSelection.