pub struct Cell<'a> {
pub column: &'a str,
pub part: Option<CellPart>,
pub content: Markup<'a>,
}Expand description
One cell of a row.
The contents are Markup rather than text, and that is the whole shape of
this module: a cell holds whatever the app builds, and the app says so by
naming it. Escaping a cell here would be wrong as well as impossible — a
task row’s description cell is five nested spans and a badge.
Fields§
§column: &'a strWhich column this fills, by name.
part: Option<CellPart>What the cell holds, when the whole cell is one thing.
Carries the cell-part class the stylesheet half emits, so a cell that is nothing but controls says so in the description’s own words rather than in the app’s.
This was Option<RowPart> until 0.25.0, which was the drift
makeover-layout 0.14.0 named: a table cell borrowing the list row’s
vocabulary, because the table side had none. A row’s parts answer a
different question (which of six emphases this run of text takes) from a
cell’s (whether this is text, tokens, controls or a link).
None for a cell mixing parts. A cell holding a value and a strip of
tokens and a control is three parts in one container, and each one
wears its own class inside — this field is for the single-part case,
where a wrapper span would say nothing the cell has not already said.
content: Markup<'a>The contents. Trusted app markup.