Skip to main content

ListItemBuilder

Trait ListItemBuilder 

Source
pub trait ListItemBuilder: Sized {
    // Required methods
    fn subtitle<M>(self, text: impl IntoText<M>) -> Self;
    fn detail<M>(self, text: impl IntoText<M>) -> Self;
    fn icon<M>(self, name: impl IntoReactive<VectorName, M>) -> Self;
    fn symbol(self, symbol: Symbol) -> Self;
    fn icon_tint<M>(self, color: impl IntoReactive<Color, M>) -> Self;
    fn checked<M>(self, on: impl IntoReactive<bool, M>) -> Self;
}
Expand description

Builder methods of ListItem, reachable through a Decorated (docs/api-style.md “Typed builders and erasure”): generic modifiers and typed ones chain in any order.

Required Methods§

Source

fn subtitle<M>(self, text: impl IntoText<M>) -> Self

A second line under the title, in the platform’s secondary style.

Source

fn detail<M>(self, text: impl IntoText<M>) -> Self

Trailing text, such as a count or a value, in the platform’s secondary style.

Source

fn icon<M>(self, name: impl IntoReactive<VectorName, M>) -> Self

The leading glyph: an app vector (res::vectors::…), drawn as a template in the foreground color unless Self::icon_tint names one. A signal or closure swaps it in place.

Source

fn symbol(self, symbol: Symbol) -> Self

The leading glyph as a standard symbol.

Source

fn icon_tint<M>(self, color: impl IntoReactive<Color, M>) -> Self

The leading glyph’s color.

Source

fn checked<M>(self, on: impl IntoReactive<bool, M>) -> Self

A trailing check mark while on holds: the platform’s mark for a chosen or completed row, announced as selected.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ListItemBuilder for ListItem

Source§

impl<DecoratedInner: ListItemBuilder + Piece> ListItemBuilder for Decorated<DecoratedInner>

Day API ↩ Guides· daybrite.dev