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
Required Methods§
Sourcefn subtitle<M>(self, text: impl IntoText<M>) -> Self
fn subtitle<M>(self, text: impl IntoText<M>) -> Self
A second line under the title, in the platform’s secondary style.
Sourcefn detail<M>(self, text: impl IntoText<M>) -> Self
fn detail<M>(self, text: impl IntoText<M>) -> Self
Trailing text, such as a count or a value, in the platform’s secondary style.
Sourcefn icon<M>(self, name: impl IntoReactive<VectorName, M>) -> Self
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.
Sourcefn icon_tint<M>(self, color: impl IntoReactive<Color, M>) -> Self
fn icon_tint<M>(self, color: impl IntoReactive<Color, M>) -> Self
The leading glyph’s color.
Sourcefn checked<M>(self, on: impl IntoReactive<bool, M>) -> Self
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".