DescriptionList builder
A list of term and description pairs, in one or two columns.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::display::DescriptionList;
Construct
new(ident: impl Into<Ident>) -> SelfOptions
Chain onto the value.
item(item: DescriptionItem) -> Self
items(items: impl IntoIterator<Item = DescriptionItem>) -> Self
columns(columns: usize) -> Self
on_copy(handler: impl Fn(SharedString, &mut Window, &mut App) + 'static) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.