Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / COLLECTIONS AND INTERACTION
TableRow
A stable table row.
Missing cells are blank; cells beyond the column count are ignored.
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
TableRow
struct TableRow<ID> where ID : HashableConforms to: Swift.Identifiable, Swift.Sendable, Swift.SendableMetatype.
A stable table row.
Missing cells are blank; cells beyond the column count are ignored.
Source · Table.swift:34id
var id: IDStable identity for this icon or code block.
Source · Table.swift:35cells
var cells: [TableCell]A public field of this type. Its value type and mutability are shown in the declaration.
Source · Table.swift:36height
var height: IntHeight in terminal cells.
Source · Table.swift:37style
var style: StyleVisual attributes used when painting this value.
Source · Table.swift:38patch
var patch: StylePatch?A public field of this type. Its value type and mutability are shown in the declaration.
Source · Table.swift:39topMargin
var topMargin: IntA public field of this type. Its value type and mutability are shown in the declaration.
Source · Table.swift:40bottomMargin
var bottomMargin: IntA public field of this type. Its value type and mutability are shown in the declaration.
Source · Table.swift:41init(id:cells:height:style:patch:)
init(id: ID, cells: [TableCell], height: Int = 1, style: Style = Style(), patch: StylePatch? = nil)Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (5)
id- Stable entry/icon identity, not an array index.
cells- Argument type and any default are shown in the declaration; see the behavior notes above.
height- Available rows in terminal cells.
style- Text/cell appearance.
patch- Argument type and any default are shown in the declaration; see the behavior notes above.