GridTypeProviderProps
Props for the GridTypeProvider component.
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
defaults | TypeDefaultsMap | Type defaults to provide to all descendant grids. |
children | ReactNode |
Property Details
Section titled “Property Details”defaults
Section titled “defaults”const typeDefaults = { country: { renderer: (ctx) => <CountryBadge value={ctx.value} />, editor: (ctx) => <CountrySelect value={ctx.value} onCommit={ctx.commit} /> }, status: { renderer: (ctx) => <StatusBadge value={ctx.value} /> }};
<GridTypeProvider defaults={typeDefaults}> <App /></GridTypeProvider>
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