Skip to content

CollectHeaderRowsContext

Since v2.10.0

Context passed in PluginQuery.context for the 'collectHeaderRows' query — used by consumers (e.g. the export plugin) to collect extra header rows that should sit above the leaf column-header row.

Plugins that contribute header rows (e.g. GroupingColumnsPlugin) declare { type: 'collectHeaderRows' } in their manifest and respond from handleQuery with a HeaderRowContribution — or an array of them for multi-row contributions (e.g. multi-level grouping). The consumer flattens array replies.

The reply shape is intentionally generic — “here are some cells, each spanning N leaf columns” — so consumers don’t need to know which plugin produced them. Responding plugins MUST align their contribution to the columns array on this context — span values are indices into it.

PropertyTypeDescription
columnsColumnConfig<any>[]Resolved leaf columns (in display order) the consumer is about to emit.
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt