Skip to main content

ToggleableListItem

Function ToggleableListItem 

Source
pub fn ToggleableListItem(
    headline: impl Into<String>,
    checked: bool,
    on_checked_change: impl Fn(bool) + 'static,
    supporting_text: Option<String>,
    overline_text: Option<String>,
    leading: Option<View>,
    trailing: Option<View>,
    config: ListItemConfig,
) -> View
Expand description

M3 Toggleable List Item -> multi-selection variant with checked state and Role::Checkbox semantics. Clicking toggles the checked state.