Skip to main content

TableColumn

A column of a Table: its header and width.

Inherits: Control

Properties

  • alignment - How the header and cells of this column are aligned.
  • fill - Whether this column takes the width left over by the fixed-width columns.
  • header - The content of this column's header cell.
  • width - The width of this column.

Properties​

alignmentclass-attributeinstance-attribute​

alignment: Alignment | None = None

How the header and cells of this column are aligned.

If None, they are aligned to the start and vertically centered.

fillclass-attributeinstance-attribute​

fill: bool = False

Whether this column takes the width left over by the fixed-width columns. Several filling columns share it equally. If there is not enough width left, the column keeps its width and the table scrolls horizontally.

headerclass-attributeinstance-attribute​

header: StrOrControl | None = None

The content of this column's header cell.

The table shows a header row if any column has a header.

widthclass-attributeinstance-attribute​

width: Number = 100

The width of this column.

When fill is True, the smallest width of this column.

Raises:

  • ValueError - If it is not strictly greater than 0.