Skip to content

ColumnInferenceMode

Since v2.17.0

How automatic column inference combines with explicitly provided columns.

  • 'auto' (default): infer columns only when none are provided. Declaring a single column (via columns, gridConfig.columns, or <tbw-grid-column>) disables inference and renders only the declared column(s).
  • 'merge': always infer the full column set from the data (in data-key order), then overlay any explicitly provided columns matched by field. A provided column customizes only its own field and keeps its data position; provided columns for fields absent from the data are appended as computed columns.

Use ColumnInferenceModeEnum to access individual values by key.

Column inference mode — see ColumnInferenceModeEnum for values.

type ColumnInferenceMode = typeof ColumnInferenceModeEnum[keyof typeof ColumnInferenceModeEnum]

Use ColumnInferenceModeEnum to reference these values from runtime code:

const ColumnInferenceModeEnum = {
AUTO: 'auto',
MERGE: 'merge',
} as const;
KeyValue
AUTO'auto'
MERGE'merge'
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt