Skip to content

GridConfig

Grid configuration for React applications.

Uses React-augmented ColumnConfig that accepts JSX render functions.

type GridConfig = Omit<BaseGridConfig<TRow>, "columns" | "loadingRenderer"> & object
import type { GridConfig } from '@toolbox-web/grid-react';
const config: GridConfig<Employee> = {
columns: [
{ field: 'name', header: 'Name' },
{
field: 'status',
renderer: (ctx) => <StatusBadge value={ctx.value} />,
},
],
};
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