RevoGrid Documentation v4.21.7 / CellTemplateProp
Interface: CellTemplateProp<TModel, TColumn, TProp>
Template property for each cell, extends the column data schema model. Additionally, it provides access to the providers injected into the template.
Extends
ColumnDataSchemaModel<TModel,TColumn,TProp>
Type Parameters
| Type Parameter | Default type |
|---|---|
TModel extends DataType | DataType |
TColumn extends ColumnRegular | ColumnRegular |
TProp extends ColumnProp | TColumn["prop"] |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
colIndex | number | Virtual index of the column in the viewport | ColumnDataSchemaModel.colIndex | src/types/interfaces.ts:59 |
colType | DimensionCols | Column type based on viewport | ColumnDataSchemaModel.colType | src/types/interfaces.ts:63 |
column | TColumn | Column data object | ColumnDataSchemaModel.column | src/types/interfaces.ts:51 |
data | TModel[] | Row models based on viewport | ColumnDataSchemaModel.data | src/types/interfaces.ts:71 |
model | TModel | Row data object | ColumnDataSchemaModel.model | src/types/interfaces.ts:47 |
prop | TProp | Column prop used for mapping value to cell from data source model/row | ColumnDataSchemaModel.prop | src/types/interfaces.ts:43 |
providers | Providers<DimensionRows> | Providers injected into the template Also to get grouping depth | - | src/types/interfaces.ts:91 |
rowIndex | number | Virtual index of the row in the viewport | ColumnDataSchemaModel.rowIndex | src/types/interfaces.ts:55 |
type | DimensionRows | Row type based on viewport | ColumnDataSchemaModel.type | src/types/interfaces.ts:67 |
value? | ModelValueByProp<TModel, TProp> | Current cell data value Mapped from model through column property like model['prop'] | ColumnDataSchemaModel.value | src/types/interfaces.ts:76 |