Headers and Styling
Browse these live examples and open Code to inspect their configuration.
Trend summary group headers
Section titled “Trend summary group headers”Use createTrendSummaryHeader on a column group to show a KPI and a dotted chronological trend above its child columns. Add the rv-trend-summary-grid class to opt into extra group-header height and install TooltipPlugin for hover and keyboard-focus details. The host supplies the period labels, numeric range, values, colors, and KPI text. The live example above includes the complete setup.
Headers and conditional styling
Section titled “Headers and conditional styling”These helpers have different binding points. Do not assign them as ordinary cellTemplate functions.
| Helper | When to use it | How to bind |
|---|---|---|
columnTypeRenderer | Add an icon for a column type in its header. | Set columnTemplate and columnType; see Column Type Renderer. |
thresholdRenderer | Apply threshold classes to a cell. | Set cellProperties and thresholds; provide CSS for your classes. |
summaryHeaderRenderer | Display a categorical distribution in a summary header. | Call it from a header template with your summary and optional maxItems. |
summaryAggregateRenderer | Display sum or average summary output. | Call it from a header template with the summary and showSum or showAvg. |
renderSortMenuHeader | Render the shared column-menu trigger and sort indicator. | Call it from columnTemplate and configure the column menu. |
renderColumnHeader | Compose a heading, optional subtitle, and optional action. | Call it from columnTemplate with localized text and a callback. |
For custom compositions, Pro also exports renderCellAction, renderGroupCell, renderIdentityCell, and renderMetricTrend. These helpers render content; grid configuration, callbacks, accessibility labels, and application state remain yours. For editor and renderer composition, see Multiple Renderers.