Skip to content

LoadingSize

Since v1.7.0

Loading indicator size variant.

  • 'large': 48x48px max - used for grid-level loading overlay (grid.loading = true)
  • 'small': Follows row height - used for row/cell loading states
type LoadingSize = "large" | "small"
// Custom loading renderer adapting to size
const myLoader: LoadingRenderer = (ctx) => {
if (ctx.size === 'large') {
// Full overlay spinner
return '<div class="spinner-lg"></div>';
}
// Inline row/cell spinner
return '<span class="spinner-sm"></span>';
};
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