GridCellRange

View as Markdown

A rectangular cell selection passed to selectCellRange.

columnIds is required. The rows are resolved from primary keys when primaryKeyValueEnd is set: the start row is primaryKeyValueStart and the end row is primaryKeyValueEnd. When primaryKeyValueEnd is omitted, both rows are resolved from rowIndexStart and rowIndexEnd. A range with only primaryKeyValueStart is resolved by row index. Omit rowIndexEnd and the range is the single start row.

TypeScript
export interface

Properties

PropertyTypeDescription
columnIdsstring[]Column ids in the selection. Required.
primaryKeyValueEndanyPrimary key of the last row. When this is set, both row ends are resolved by primary key.
primaryKeyValueStartanyPrimary key of the first row. Used when primaryKeyValueEnd is set.
rowIndexEndanyIndex of the last row. Used when primaryKeyValueEnd is omitted. When this is omitted too, the range is the single start row.
rowIndexStartanyIndex of the first row. Used when primaryKeyValueEnd is omitted.

Property Details

columnIds

Column ids in the selection. Required.

TypeScript
columnIds: string[];
Property Value

string[]

primaryKeyValueEnd

Primary key of the last row. When this is set, both row ends are resolved by primary key.

TypeScript
primaryKeyValueEnd?: any;
Property Value

any

primaryKeyValueStart

Primary key of the first row. Used when primaryKeyValueEnd is set.

TypeScript
primaryKeyValueStart?: any;
Property Value

any

rowIndexEnd

Index of the last row. Used when primaryKeyValueEnd is omitted. When this is omitted too, the range is the single start row.

TypeScript
rowIndexEnd?: any;
Property Value

any

rowIndexStart

Index of the first row. Used when primaryKeyValueEnd is omitted.

TypeScript
rowIndexStart?: any;
Property Value

any