gridx
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

gridx.modules.select.Cell

Object » _RowCellBase » gridx.modules.select.Cell
dojo.require("gridx.modules.select.Cell");
Defined in gridx/modules/select/Cell.js

This module provides a simple way for selecting cells by clicking or SPACE key, or CTRL + Click to select multiple cells.

Examples:

Example 1

1. Use select api on grid cell object obtained from grid.cell(i, j)
	grid.cell(1,1).select();
	grid.cell(1,1).deselect();
	grid.cell(1,1).isSelected();
2. Use select api on select.cell module
	grid.select.cell.selectById(rowId, columnId);
	grid.select.cell.deSelectById(rowId, columnId);
	grid.select.cell.isSelected(rowId, columnId);
	grid.select.cell.getSelected();//[]
	grid.select.cell.clear();

Property Summary

  • cellMixin A map of functions to be mixed into grid cell object, so that we can use select api on cell object directly - grid.cell(1,1).select() | deselect() | isSelected();

Method Summary

Event Summary

Attached Objects

Properties

cellMixin
Overrides _RowCellBase
A map of functions to be mixed into grid cell object, so that we can use select api on cell object directly - grid.cell(1,1).select() | deselect() | isSelected();

Methods

_getMarkType
Overrides _RowCellBase
ParameterTypeDescription
colId
_highlight
Overrides _RowCellBase
ParameterTypeDescription
rowId
colId
toHighlight
_init
Overrides _RowCellBase
_isSelected
Overrides _RowCellBase
ParameterTypeDescription
cell
_markById
Overrides _RowCellBase
ParameterTypeDescription
item
toMark
_onMark
Overrides _RowCellBase
ParameterTypeDescription
rowId
toMark
oldState
type
_onRender
Overrides _RowCellBase
ParameterTypeDescription
start
count
clear
Overrides _RowCellBase
Deselected all the selected cells;
deselectById
Overrides _RowCellBase
Deselect a cell by [rowId, columnId].
ParameterTypeDescription
rowId
columnId
getSelected
Overrides _RowCellBase
Get arrays of [rowId, columnId] of all the selected cells
isSelected
Overrides _RowCellBase
Check if a cell is already selected.
ParameterTypeDescription
rowId
columnId
selectById
Overrides _RowCellBase
Select a cell by [rowId, columnId].
ParameterTypeDescription
rowId
columnId

Events

onDeselected
Overrides _RowCellBase
Fired when a cell is deselected.
ParameterTypeDescription
cellgridx.core.CellThe cell object
onHighlightChange
Overrides _RowCellBase
Fired when a cell's highlight is changed.
onSelected
Overrides _RowCellBase
Fired when a cell is selected.
ParameterTypeDescription
cellgridx.core.CellThe cell object