ColumnAutoWidth
Feature
Enables the autoWidth config for a grid's columns. When a column has autoWidth set, this feature measures the rendered content of all visible cells in that column and adjusts the column width to fit. The measurement is triggered automatically when data changes or rows are rendered.
This feature is enabled by default.
const grid = new Grid({
columns : [
{ field : 'name', text : 'Name', autoWidth : true },
{ field : 'city', text : 'City', autoWidth : [100, 300] } // min/max
]
});
See also
- autoWidth - Per-column auto-width config
- ColumnResize - Manual column resizing
No results
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
The default
autoWidthoption for columns withautoWidth: true. This can be a single number for the minimum column width, or an array of two numbers for the[minWidth, maxWidth]. -
The amount of time (in milliseconds) to delay after a store modification before synchronizing
autoWidthcolumns.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of ColumnAutoWidth class, or subclass thereof.
-
Identifies an object as an instance of ColumnAutoWidth class, or subclass thereof.
id: columnAutoWidth