Skip to content

Recipes

Feature pages tell you what each option does. Recipes answer the other question: “how do I build this?” Each one starts from a concrete goal and ends with runnable code and the failure modes we know about.

Every page follows the same four steps, so you can skim straight to the part you need:

  1. Problem — the concrete thing you’re building.
  2. What you need — which grid features to enable, plus any external library and its approximate size.
  3. Code — runnable code against public, versioned API.
  4. Caveats — the failure modes we know about.

Recipes are written in vanilla TypeScript. gridConfig is byte-identical across React, Vue, and Angular, so the only thing that changes per framework is how you hand the config to the component and how you bind events — see Framework Adapters and Listening to Events.

Built entirely from @toolbox-web/grid — supported, versioned, and covered by our tests.

These reach a capability the grid deliberately does not ship. The grid holds a hard bundle budget — core stays under 50 kB gzipped, and anything that can be a plugin is a plugin. A PDF writer is larger than the entire grid; a formula engine is larger still. So rather than ship a mediocre built-in, the grid exposes the seam you can drive an external library from:

CapabilitySeam
PDF exportExportPlugin.getResolvedColumns() / .export()
Computed & formula columnscolumn.valueAccessor
Charts and rich cell contentcolumn.renderer
Masked, validated or exotic inputcolumn.editor + the cell-commit event
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt