gridx.modules.CellWidget
Object » _Module » gridx.modules.CellWidget
dojo.require("gridx.modules.CellWidget");
Defined in gridx/modules/CellWidget.js
Since widget declarations need to be parsed by dojo.parser, it can NOT be directly created by the decorator function. This module takes advantage of the _TemplatedMixin and the _WidgetInTemplateMixin so that users can write "templates" containing widgets in decorator function. This modules also limits the total number of widgets, so that the performance of grid can be configured to a tolerable level when there're lots of widgets in grid.
Property Summary
Method Summary
- _beginNavigate(rowId, colId)
- _doBlur(evt, step)
- _doFocus(evt, step)
- _endNavigate()
- _getSpecialCellDec(rowId, colId)
- _getSpecialWidget(cell)
- _init()
- _initFocus()
- _isNavigable(colId)
- _onFocus(evt)
- _onKey(e)
- _onUnrenderRow(id)
- _prepareCellWidget(cell)
- _showDijit(cell)
- _showDijits(row)
- constructor()
- destroy()
- getAPIPath()
- getCellWidget(rowId, colId) Get the CellWidget displayed in the given cell.
- preload()
- restoreCellDecorator(rowId, colId) Remove a cell decorator defined by the "setCellDecorator" method.
- setCellDecorator(rowId, colId, decorator, setCellValue) This method is used to decorate a specific cell instead of a whole column.
Event Summary
- onCellWidgetCreated() Fired when a cell widget is created. widget: gridx.__CellWidget The created cell widget. cell: gridx.core.Cell The cell object containing this widget.
Attached Objects
Properties
Methods
Overrides _Module
When this module is used, the string returned from decorator function will be the template string of a CellWidget. This method gets this widget so that more control can be applied to it.
Parameter | Type | Description |
---|---|---|
rowId | string | The row ID of the cell |
colId | string | The column ID of the cell |
Overrides _Module
Remove a cell decorator defined by the "setCellDecorator" method.
Parameter | Type | Description |
---|---|---|
rowId | String | The row ID of the cell |
colId | String | The column ID of the cell |
Overrides _Module
This method is used to decorate a specific cell instead of a whole column.
Parameter | Type | Description |
---|---|---|
rowId | String | The row ID of the cell |
colId | String | The column ID of the cell |
decorator | Function(data) | The decorator function for this cell. |
setCellValue | Function() | Optional. This function can be provided to customiz the way of setting widget value |