Skip to content

Commit

Permalink
list::check-list-item::selected (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-duch authored May 19, 2022
1 parent 4ed8d76 commit 54e1fd4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions material-yew/src/list/check_list_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ pub struct CheckListItemProps {
pub disabled: bool,
#[prop_or_default]
pub on_request_selected: Callback<RequestSelectedDetail>,
#[prop_or_default]
pub selected: bool,
pub children: Children,
}

Expand All @@ -60,6 +62,7 @@ impl Component for MatCheckListItem {
left={bool_to_option(props.left)}
graphic={props.graphic.as_str()}
disabled={props.disabled}
selected={props.selected}
ref={self.node_ref.clone()}
>{props.children.clone()}</mwc-check-list-item>
}
Expand Down

0 comments on commit 54e1fd4

Please sign in to comment.