Skip to content

Commit 54e1fd4

Browse files
authored
list::check-list-item::selected (#27)
1 parent 4ed8d76 commit 54e1fd4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

material-yew/src/list/check_list_item.rs

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ pub struct CheckListItemProps {
3838
pub disabled: bool,
3939
#[prop_or_default]
4040
pub on_request_selected: Callback<RequestSelectedDetail>,
41+
#[prop_or_default]
42+
pub selected: bool,
4143
pub children: Children,
4244
}
4345

@@ -60,6 +62,7 @@ impl Component for MatCheckListItem {
6062
left={bool_to_option(props.left)}
6163
graphic={props.graphic.as_str()}
6264
disabled={props.disabled}
65+
selected={props.selected}
6366
ref={self.node_ref.clone()}
6467
>{props.children.clone()}</mwc-check-list-item>
6568
}

0 commit comments

Comments
 (0)