Skip to content

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.

// 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 programmatically
const config = await grid.getConfig();
console.log(config.columns); // Inferred columns
PropertyTypeDescription
columnsColumnConfigMap<TRow>Generated column configurations based on data analysis
typeMapRecord<string, ColumnType>Map of field names to their inferred types
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