A width with unit – used for ColumnDefIf.width, minWidth and maxWidth. For pixel widths use the constants px80, px100, px120 … (px0 – px500).

Example

new Size(37, "px");        // fixed
new Size(10, "%"); // 10 % of the table width (clamped by minWidth / maxWidth)
new Size(2, "weight"); // twice as much of the remaining space as a column with weight 1

Hierarchy

  • Size

Implements

Constructors

Properties

Constructors

Properties

unit: SizeUnitType = "px"
value: number = 100