Represents a rectangular selection of cells in LyteNyte Grid.
A DataRect defines its range by numerical row and column indices. It is used to extract or operate on a subset of the grid's data regardless of row or column reordering. However, if the number of rows or columns changes, the rect may be invalidated if it extends beyond the new bounds.
The ending column index (exclusive).
number
The starting column index (inclusive).
number
The ending row index (exclusive).
number
The starting row index (inclusive).
number
Parameters for exporting a CSV file from LyteNyte Grid.
Optional DataRect specifying the area to export.
If not provided, the grid exports the currently visible data range.
Type | DataRect |
Delimiter character to use for separating values in the CSV output.
string
Whether to include column group headers in the CSV output.
boolean
Whether to include column headers in the CSV output.
boolean
Whether group headers should be rendered as uniform-length arrays.
boolean
Signature for the function that exports a DataRect from the grid.
Called via the LyteNyte Grid API when exporting a selection of cells.
params | ExportDataRectParams (docs) |
Promise
Parameters for exporting a specific rectangular region of the grid using a DataRect.
The specific DataRect to export. If omitted, the grid may default to a visible range.
Type | DataRect |
Whether group headers should be returned as symmetrical arrays (i.e., uniform across rows).
Useful when dealing with column groups that span multiple columns.
boolean
The result structure returned after exporting a DataRect from LyteNyte Grid.
The column definitions associated with the exported data.
No properties
The 2D data matrix for the selected cells. Row and column spans are not applied.
No properties
A matrix of group header labels corresponding to the exported columns.
No properties
An array of header ids for the exported columns.
No properties