Skip to content

AfterRowRenderContext

Context passed to the afterRowRender plugin hook.

This provides efficient row-level access after all cells are rendered. Plugins receive this context for each row, enabling row-level modifications without requiring DOM queries in afterRender.

afterRowRender(context: AfterRowRenderContext): void {
if (this.isRowSelected(context.rowIndex)) {
context.rowElement.classList.add('selected', 'row-focus');
}
}
PropertyTypeDescription
rowTRowThe row data object
rowIndexnumberZero-based row index in the visible rows array
rowElementHTMLElementThe row DOM element - can be modified by the plugin
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt