Struct ColumnSpec
One table column's sizing rule: either a fixed initial width, or a flex weight sharing whatever width the
fixed columns leave behind. Either way the column never shrinks below MinimumWidth.
Assembly: Serenity.Shared.dll
Syntax
public readonly struct ColumnSpec
Fields
FixedWidth
The width a fixed column starts at; meaningless when IsFlex is true.
Declaration
public readonly float FixedWidth
Field Value
FlexWeight
This column's share of the leftover width relative to the other flex columns; meaningless
when IsFlex is false.
Declaration
public readonly float FlexWeight
Field Value
IsFlex
Whether this column shares leftover width instead of starting at a fixed width.
Declaration
public readonly bool IsFlex
Field Value
MinimumWidth
The narrowest this column is ever allowed to become, from an initial solve or a drag.
Declaration
public readonly float MinimumWidth
Field Value
Methods
Fixed(float, float)
A column that starts at fixedWidth and never shrinks below
minimumWidth.
Declaration
public static ColumnSpec Fixed(float fixedWidth, float minimumWidth)
Parameters
| Type |
Name |
Description |
| float |
fixedWidth |
|
| float |
minimumWidth |
|
Returns
Flex(float, float)
A column that shares the leftover width by weight, never below
minimumWidth.
Declaration
public static ColumnSpec Flex(float weight, float minimumWidth)
Parameters
| Type |
Name |
Description |
| float |
weight |
|
| float |
minimumWidth |
|
Returns