Export grid to CSV format.
| Parameter | Type | Description |
|---|---|---|
| writerArgs | object |
Optional {separator:'...'} |
Format cell value to follow CSV standard. See: http://en.wikipedia.org/wiki/Comma-separated_values
| Parameter | Type | Description |
|---|---|---|
| cellValue | string | The value in a cell. |
The formatted content of a cell
| Parameter | Type | Description |
|---|---|---|
| rowIndex | undefined | |
| rowItem | undefined | |
| cell | undefined | |
| grid | undefined |
We have finished the entire grid travel. Do some clean up work if you need to.
undefined
After handling a line of data (not header).
| Parameter | Type | Description |
|---|---|---|
| argObj | object | An object with at least the following context properties available: {
grid,isHeader,
row,rowIdx,
spCols
}
|
undefined
The header line has been handled.
undefined
Before handling a subrow in a line (defined in the grid structure).
| Parameter | Type | Description |
|---|---|---|
| argObj | object | An object with at least the following context properties available: {
grid,isHeader,
row,rowIdx,
view,viewIdx,
subrow,subrowIdx,
spCols(if isHeader==false)
}
|
undefined
After handling a view.
| Parameter | Type | Description |
|---|---|---|
| argObj | object | An object with at least the following context properties available: {
grid,isHeader,
view,viewIdx,
spCols(if isHeader==false)
}
|
undefined
We are ready to go through all the contents(items).
| Parameter | Type | Description |
|---|---|---|
| items | Array | All the items fetched from the store |
Overrided from _ExportWriter
| Parameter | Type | Description |
|---|---|---|
| arg_obj | object |
We are going to start the travel in the grid. Is there anything we should do now?
| Parameter | Type | Description |
|---|---|---|
| grid | EnhancedGrid |
Before handling a subrow in a line (defined in the grid structure).
| Parameter | Type | Description |
|---|---|---|
| argObj | object | 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 view.
| Parameter | Type | Description |
|---|---|---|
| argObj | object | An object with at least the following context properties available: {
grid,isHeader,
view,viewIdx,
spCols(if isHeader==false)
}
|
Overrided from _ExportWriter
| Parameter | Type | Description |
|---|---|---|
| arg_obj | object |
Overrided from _ExportWriter