pub struct ListItemProps {
pub headline: Element,
pub overline: Option<Element>,
pub supporting: Option<Element>,
pub supporting_clipped: Option<Clipped>,
pub leading: Option<Element>,
pub trailing: Option<Element>,
pub trailing_decorative: bool,
pub action: ListAction,
pub current: bool,
pub availability: Availability,
pub class: Option<String>,
pub attributes: Vec<Attribute>,
}Expand description
Properties for the ListItem component.
Fields§
§headline: Element§overline: Option<Element>§supporting: Option<Element>§supporting_clipped: Option<Clipped>Supporting text the CSS clamps; truncation is declared and the full text kept
in title. Used instead of supporting.
leading: Option<Element>Decorative leading content: an avatar, an icon. Hidden from assistive technology.
trailing: Option<Element>§trailing_decorative: boolHide trailing from assistive technology, e.g. a chevron.
action: ListAction§current: boolThe current page for a link, or the current item for a button.
availability: Availability§class: Option<String>§attributes: Vec<Attribute>Implementations§
Source§impl ListItemProps
impl ListItemProps
Sourcepub fn builder() -> ListItemPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> ListItemPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ListItemProps.
On the builder, call .headline(...), .overline(...)(optional), .supporting(...)(optional), .supporting_clipped(...)(optional), .leading(...)(optional), .trailing(...)(optional), .trailing_decorative(...)(optional), .action(...)(optional), .current(...)(optional), .availability(...)(optional), .class(...)(optional), .attributes(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ListItemProps.