InferredColumnResult
Result of automatic column inference from sample rows.
When no columns are configured, the grid analyzes the first row of data to automatically generate column definitions with inferred types.
Example
Section titled “Example”// Automatic inference (no columns configured)grid.rows = [ { name: 'Alice', age: 30, active: true, hireDate: new Date() },];// Grid infers:// - name: type 'string'// - age: type 'number'// - active: type 'boolean'// - hireDate: type 'date'
// Access inferred result programmaticallyconst config = await grid.getConfig();console.log(config.columns); // Inferred columnsProperties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
columns | ColumnConfigMap<TRow> | Generated column configurations based on data analysis |
typeMap | Record<string, ColumnType> | Map of field names to their inferred types |
See Also
Section titled “See Also”ColumnConfigfor column configuration optionsColumnTypefor type inference rules
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