gridx.modules.extendedSelect.Cell
Object » _RowCellBase » gridx.modules.extendedSelect.Cell
dojo.require("gridx.modules.extendedSelect.Cell");
Defined in gridx/modules/extendedSelect/Cell.js
This module provides an advanced way for selecting cells by clicking, swiping, SPACE key, or CTRL/SHIFT CLICK to select multiple cell.
Examples:
Example 1
1. Use select api on 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(columnId);
grid.select.cell.deSelectById(columnId);
grid.select.cell.isSelected(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 column object directly - grid.cell(1,1).select() | deselect() | isSelected();
Method Summary
- _addToSelected(start, end, toSelect)
- _beginAutoScroll()
- _doHighlight(item, toHighlight)
- _endAutoScroll()
- _focus(target)
- _getMarkType(colId)
- _getSelectedIds()
- _highlight(target)
- _init()
- _isSelected(item)
- _markById(args, toSelect)
- _markByIndex(args, toSelect)
- _onMark(id, toMark, oldState, type)
- _onMoveToCell(rowVisIndex, colIndex, e)
- _onRender(start, count)
- clear(silent) Deselected all selected cells
- deSelectByIndex(rowIndex, columnIndex) Deselect a cell by (rowIndex, columnIndex)
- deselectById(columnId) Deselect a cell by (rowId, columnId)
- getSelected() Get an array of selected cells e.g.[['row1', 'col1'], ['row2', 'col2']]
- isSelected(rowId, columnId) Check if the given cell is selected.
- selectById(rowId, columnId) Select a cell by (rowId, columnId)
- selectByIndex(rowIndex, columnIndex) Select a cess by (rowIndex, columnIndex)
Attached Objects
Properties
Overrides _RowCellBase
A map of functions to be mixed into grid cell object, so that we can use select api on column object directly
- grid.cell(1,1).select() | deselect() | isSelected();
Methods
Overrides _RowCellBase
Deselect a cell by (rowIndex, columnIndex)
Parameter | Type | Description |
---|---|---|
rowIndex | ||
columnIndex |
Overrides _RowCellBase
Deselect a cell by (rowId, columnId)
Parameter | Type | Description |
---|---|---|
columnId |
Overrides _RowCellBase
Get an array of selected cells e.g.[['row1', 'col1'], ['row2', 'col2']]
Overrides _RowCellBase
Check if the given cell is selected.
Parameter | Type | Description |
---|---|---|
rowId | ||
columnId |
Overrides _RowCellBase
Select a cell by (rowId, columnId)
Parameter | Type | Description |
---|---|---|
rowId | ||
columnId |