useTypeDefault
Hook to get type defaults for a specific type.
useTypeDefault(type: string): TypeDefault<TRow, TValue> | undefinedParameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
type | string | The type name to look up |
Returns
Section titled “Returns”TypeDefault<TRow, TValue> | undefined - The type defaults, or undefined if not found
Example
Section titled “Example”function MyComponent() { const countryDefaults = useTypeDefault('country'); // countryDefaults?.renderer, countryDefaults?.editor}
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