v7.3.0

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

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • The default autoWidth option for columns with autoWidth: 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 autoWidth columns.

Properties

Properties are getters/setters or publicly accessible variables on this class
id: columnAutoWidth

Source path

Grid/feature/ColumnAutoWidth.js

Contents