Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / COLLECTIONS AND INTERACTION
TableColumn
A table column, sized by the same constraints used by Layout.
Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.
Members on this page
Feature guides and release status
TableColumn
struct TableColumnConforms to: Swift.Sendable, Swift.SendableMetatype.
A table column, sized by the same constraints used by Layout.
title
var title: TableCellOptional title displayed in the top border.
Source · Table.swift:20width
var width: ConstraintWidth in terminal cells.
Source · Table.swift:21alignment
var alignment: CellAlignmentA public field of this type. Its value type and mutability are shown in the declaration.
Source · Table.swift:22init(_:width:alignment:)
init(_ title: String, width: Constraint = .fill(1), alignment: CellAlignment = .left)Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (3)
title- Argument type and any default are shown in the declaration; see the behavior notes above.
width- Available columns in terminal cells.
alignment- Argument type and any default are shown in the declaration; see the behavior notes above.