RevoGrid Documentation v4.21.8 / DataType
Type Alias: DataType<D, K>
ts
type DataType<D, K>: { [T in K]: DataFormat<D> };Represents a generic row data object used internally by the grid.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
D | any | Value type for all properties (defaults to any). |
K extends ColumnProp | ColumnProp | Column property keys (defaults to ColumnProp). For type-safe usage, define your own row interface and pass it directly as the data source. Use ColumnRegular generics to bind column definitions to your row type: type MyRow = { id: number; name: string }; const source: MyRow[] = [{ id: 1, name: 'Alice' }]; const columns: ColumnRegular<keyof MyRow, MyRow>[] = [ { prop: 'id', name: 'ID' }, { prop: 'name', name: 'Name' }, ]; |