Class ColumnAutoWidthOptions

The defaults of ColumnAutoWidthOptionsIf: double click on, all body rows up to 10 000, no own measurement.

Example

const options = ColumnAutoWidthOptions.create({ maxRows: 1_000 });
console.log(options.doubleClick, options.maxRows); // true 1000

Since

1.1.110

Hierarchy

  • ColumnAutoWidthOptions

Implements

Constructors

Properties

Methods

Constructors

Properties

doubleClick: boolean = true

A double click on the resize handle fits the width of the column to its content. Only where a handle is (columnsResizable and the column is not resizable: false). Default true.

getWidth?: ((ctx) => undefined | number)

Type declaration

    • (ctx): undefined | number
    • Own measurement: return the width in px, or undefined for the default. The result is limited by minWidth / maxWidth of the column.

      Returns undefined | number

maxRows: number = 10_000

Body rows that are measured: up to this number of rows all of them, above only the rows drawn now (the time stays the same with millions of rows). Header and footer are always measured. Default 10_000.

Methods