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]Runtime Values
Section titled “Runtime Values”Use FitModeEnum to reference these values from runtime code:
const FitModeEnum = { STRETCH: 'stretch', FIXED: 'fixed',} as const;| Key | Value |
|---|---|
STRETCH | 'stretch' |
FIXED | 'fixed' |
Example
Section titled “Example”// Fixed widths - good for many columnsgrid.fitMode = 'fixed';
// Stretch to fill - good for few columnsgrid.fitMode = 'stretch';
// Via gridConfiggrid.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