Skip to content

LoadingContext

Context passed to custom loading renderers.

Provides information about the loading indicator being rendered, allowing the renderer to adapt its appearance based on the size variant.

const myLoadingRenderer: LoadingRenderer = (ctx: LoadingContext) => {
if (ctx.size === 'large') {
// Full-size spinner for grid-level loading
return '<div class="large-spinner"></div>';
} else {
// Compact spinner for row/cell loading
return '<div class="small-spinner"></div>';
}
};
PropertyTypeDescription
sizeLoadingSizeThe size variant being rendered: ‘large’ for grid-level, ‘small’ for row/cell
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