pub struct SubColumn {
pub name: Option<String>,
pub width: Width,
pub align: Align,
pub overflow: Overflow,
pub null_repr: String,
pub style: Option<String>,
}Expand description
A sub-column within a parent column for per-row width distribution.
Sub-columns partition a parent column’s resolved width on a per-row basis.
Within a set of sub-columns, exactly one must use Width::Fill (the “grower”)
which absorbs remaining space after fixed/bounded sub-columns are satisfied.
This enables layouts where a single column contains multiple logical fields that share space dynamically — for example, a title that grows to fill available space alongside an optional tag of variable width:
Gallery Navigation [feature]
Bug : Static [bug]
Fixing Layout of Image NavSub-column widths are resolved per-row from actual content, not across all rows.
Width::Fraction is not supported for sub-columns.
Fields§
§name: Option<String>Optional name/identifier.
width: WidthWidth strategy (Fixed, Bounded, or Fill only — no Fraction).
align: AlignText alignment within this sub-column.
overflow: OverflowHow to handle overflow.
null_repr: StringRepresentation for null/empty values.
style: Option<String>Optional style name.