ITableRowDefinition
Home > @gooddata/sdk-ui > ITableRowDefinition
ITableRowDefinition type
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Union of all possible row types in the table data structure.
Think of the final table as a stack of these row types: 1. **Value rows** – normal data rows (one per combination of row attributes) 2. **Subtotal rows** – subtotal rows (only when subtotals are configured) 3. **Grand-total rows** – grand-total rows (only when grand totals are configured)
The exact mix depends on your configuration (pivoting, transposition, totals settings).
**Example layout (no transposition, subtotals + grand totals enabled):**
| Country | City | Q1 Sales | Q2 Sales |
|-------------|----------|----------|----------|
| USA | NYC | 100 | 150 | <- value row
| USA | LA | 200 | 250 | <- value row
| USA | SUBTOTAL | 300 | 400 | <- subtotal row
| CAN | TOR | 80 | 90 | <- value row
| CAN | SUBTOTAL | 80 | 90 | <- subtotal row
| GRAND TOTAL | | 380 | 490 | <- grand-total row
Signature:
export type ITableRowDefinition = ITableValueRowDefinition | ITableSubtotalRowDefinition | ITableGrandTotalRowDefinition;
References: ITableValueRowDefinition, ITableSubtotalRowDefinition, ITableGrandTotalRowDefinition