parseColumnShorthand
Since v3.0.0
Parse a column shorthand string into a ColumnConfig.
Supports formats:
'fieldName'→{ field: 'fieldName', header: 'Field Name' }'fieldName:type'→{ field: 'fieldName', header: 'Field Name', type: 'type' }
The :type suffix is only split off when it names a recognized primitive
type; otherwise the whole string is treated as the field name.
function parseColumnShorthand(shorthand: string): ColumnConfig<TRow>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
shorthand | string | The shorthand string (e.g., ‘name’, ‘salary:number’) |
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt