Skip to content

DataColumn2

Inherits: DataColumn

Extends flet.DataColumn, adding the ability to set relative column size and fixed column width.

Meant to be used as an item of DataTable2.columns.

Properties

Properties#

fixed_width class-attribute instance-attribute #

fixed_width: Optional[Number] = None

Defines absolute width of the column in pixels (as opposed to relative size used by default).

size class-attribute instance-attribute #

Column sizes are determined based on available width by distributing it to individual columns accounting for their relative sizes.