Skip to content

FitMode

Column sizing mode.

  • 'fixed' - Columns use their configured widths. Horizontal scrolling if content overflows.
  • 'stretch' - Columns stretch proportionally to fill available width. No horizontal scrolling.

Column sizing mode — determines how columns fill the available grid width. Use FitModeEnum to access individual values by key.

type FitMode = typeof FitModeEnum[keyof typeof FitModeEnum]

Use FitModeEnum to reference these values from runtime code:

const FitModeEnum = {
STRETCH: 'stretch',
FIXED: 'fixed',
} as const;
KeyValue
STRETCH'stretch'
FIXED'fixed'
// Fixed widths - good for many columns
grid.fitMode = 'fixed';
// Stretch to fill - good for few columns
grid.fitMode = 'stretch';
// Via gridConfig
grid.gridConfig = { fitMode: 'stretch' };
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