Class TableLayoutConfig
A table's per-axis layout policy: whether each axis (X = column widths, Y = row heights) is responsive
(fills/splits the table's available space) or content-sized, and whether each axis scrolls its
overflow instead of rendering it visibly. See Cookbooks/UI/Ui.md's "Table" section for the full
4-flag semantics matrix.
Inherited Members
Namespace: Serenity.Ui.Domain.Entities
Assembly: Serenity.Ui.Domain.dll
Syntax
public class TableLayoutConfig
Constructors
TableLayoutConfig()
Declaration
public TableLayoutConfig()
Fields
ColumnGap
Gap between adjacent columns, in pixels.
Declaration
public float ColumnGap
Field Value
| Type | Description |
|---|---|
| float |
Padding
Inner spacing between the table's edges and its rows.
Declaration
public LayoutPadding Padding
Field Value
| Type | Description |
|---|---|
| LayoutPadding |
PreferredVisibleRowCount
How many rows are visible before an unsized root (one with no explicit rect height of its own) needs a fallback extent to clip or split against — 0 leaves the root exactly as unsized as it was.
Declaration
public int PreferredVisibleRowCount
Field Value
| Type | Description |
|---|---|
| int |
ResponsiveX
Whether column widths fill/flex to the table's available width instead of hugging content.
Declaration
public bool ResponsiveX
Field Value
| Type | Description |
|---|---|
| bool |
ResponsiveY
Whether row heights split the table's available height instead of hugging content.
Declaration
public bool ResponsiveY
Field Value
| Type | Description |
|---|---|
| bool |
RowGap
Gap between adjacent rows, in pixels.
Declaration
public float RowGap
Field Value
| Type | Description |
|---|---|
| float |
RowHeight
Row height, read only while ResponsiveY is false: a FIXED value forces every row to that height; the default AUTO lets every row hug its own tallest cell content instead.
Declaration
public LayoutSize RowHeight
Field Value
| Type | Description |
|---|---|
| LayoutSize |
ScrollableX
Whether horizontal overflow scrolls instead of rendering visibly past the table's bounds.
Declaration
public bool ScrollableX
Field Value
| Type | Description |
|---|---|
| bool |
ScrollableY
Whether vertical overflow scrolls instead of rendering visibly past the table's bounds.
Declaration
public bool ScrollableY
Field Value
| Type | Description |
|---|---|
| bool |
ShowsScrollbars
Whether a scrolling axis shows a scrollbar.
Declaration
public bool ShowsScrollbars
Field Value
| Type | Description |
|---|---|
| bool |
Properties
Default
Content-sized on both axes, no scrolling, the gaps/row-height defaults above.
Declaration
public static TableLayoutConfig Default { get; }
Property Value
| Type | Description |
|---|---|
| TableLayoutConfig |