parseColumnShorthand
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' }
parseColumnShorthand(shorthand: string): ColumnConfig<TRow>Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
shorthand | string | The shorthand string (e.g., ‘name’, ‘salary:number’) |
Returns
Section titled “Returns”ColumnConfig<TRow> - A ColumnConfig object
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