A.DataTableSelection Class
A base class for DataTableSelection.
Constructor
A.DataTableSelection
-
config
Parameters:
-
config
ObjectObject literal specifying widget configuration properties.
Methods
_afterActiveCoordChange
-
event
Focus the active cell on datatable sorting.
Parameters:
-
event
EventFacade
_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:
-
event
EventFacade
_parseRange
-
val
Parse selection coordinates range.
Parameters:
-
val
Array
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:
-
val
Object
Returns:
Selected cells and rows.
captureSelection
-
coords
Return the selected cells and within the coordinates coords
.
Parameters:
-
coords
ObjectCell 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:
-
seed
Node
Returns:
Column.
getCoord
-
seed
Gets the cell coordinates of the passed seed
.
Parameters:
-
seed
Node
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:
-
seed
Node
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
.