Group row templates
Developers can supply a template or render function for group rows to show custom content such as badges, progress bars or inline aggregates. The template receives the group key, level, count, aggregates and expansion state.
Planned. This page shows the specification from issue #196. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Tasks grouped by Status with a badge template.
Expected behavior
Switching presets re-renders group rows only. The expand control and keyboard behaviour keep working inside custom templates.
Planned API surface
options.grouping.groupRowTemplateoptions.grouping.groupRowTemplateByLevelGroupRowContext {key, level, path, count, aggregates, expanded}Acceptance criteria
- The template receives the full GroupRowContext. (pending)
- Per-level templates override the global template for their level. (pending)
- The built-in toggle control remains present and functional unless explicitly replaced, which must then use the provided toggle helper. (pending)
- Template output is sanitized when it is provided as an HTML string. (pending)