Function
Writer initializations goes here.
Any implementation of this class might accept a writerArgs object (optional), which contains some writer-specific arguments given by the user.
Object
Function
Function
We are going to start the travel in the grid. Is there anything we should do now?
Boolean
Function
The header line has been handled.
undefined
Function
All the items fetched from the store return: true: go on handling the contents and then call afterContent. false: skip all the contents, won't call afterContent.
We are ready to go through all the contents(items).
Boolean
Function
We have finished the entire grid travel. Do some clean up work if you need to.
undefined
Function
An object with at least the following context properties available: { grid,isHeader, row,rowIdx, spCols } return: true: go on handling the current data row and then call afterContentRow. false: skip the current data row, won't call afterContentRow.
Before handling a line of data (not header).
Boolean
Function
An object with at least the following context properties available: { grid,isHeader, row,rowIdx, spCols }
After handling a line of data (not header).
undefined
Function
An object with at least the following context properties available: { grid,isHeader, view,viewIdx, spCols(if isHeader==false) } return: true: go on handling the current view and then call afterView. false: skip the current view, won't call afterView.
Before handling a view.
Boolean
Function
An object with at least the following context properties available: { grid,isHeader, view,viewIdx, spCols(if isHeader==false) }
After handling a view.
undefined
Function
An object with at least the following context properties available: { grid,isHeader, row,rowIdx, view,viewIdx, subrow,subrowIdx, spCols(if isHeader==false) } return: true: go on handling the current subrow and then call afterSubrow. false: skip the current subrow, won't call afterSubrow.
Before handling a subrow in a line (defined in the grid structure).
Boolean
Function
An object with at least the following context properties available: { grid,isHeader, row,rowIdx, view,viewIdx, subrow,subrowIdx, spCols(if isHeader==false) }
Before handling a subrow in a line (defined in the grid structure).
undefined
Function
An object with at least the following context properties available: { grid,isHeader, row,rowIdx, view,viewIdx, subrow,subrowIdx, cell,cellIdx, spCols(if isHeader==false) }
Handle a header cell or data cell.
undefined
Function
Export to a string.
The exported result string.
String
EnhancedGrid
The grid object we are now handling.
bool
Indicating which context we're handling, header or content.
_View
Reference to the current _View object.
int
The index of the current _View object in the views array. If the grid does not have any rowselector view, it conforms to the index in the _ViewManager.views.
_View.structure.cells[i
Reference to the current subrow. A subrow describe the innter structure of a row in a view, it's an array of cells
int
The index of the current subrow in the subrow array: _View.structure.cells.
dojox.grid.__CellDef
Reference to the current cell.
int
The index of the current cell in the current subrow. It's different from cell.index, which is the index in the whole line.
item
The current row of data (logically), a.k.a.: current item.
int
The index of the current row (item).
Array<int
An array of special column indexes(flat,not regarding structure). Special columns are typically attached to grid as a kind of UI facility by the grid widget, instead of some real data. For example, indirect selectors and row indexers. Users can choose to export it or not.
int
If the grid has a _RowSelector view or something else, this view will NOT be passed to the user in argObj. So the column index (cell.index) will appear shifted (start from 1 instead of 0). This colOffset is provided to remove this shift. usage: var correctColIndex = argObj.cell.index + argObj.colOffset;
Object
Object
Object
Object
Object