MCPcopy Create free account
hub / github.com/angular-rust/yew-components / ListProps

Class ListProps

src/list.rs:51–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49/// - [Events](https://github.com/material-components/material-components-web-components/tree/master/packages/list#mwc-list-2)
50#[derive(Clone, PartialEq, Properties)]
51pub struct ListProps {
52 #[prop_or_default]
53 pub activatable: bool,
54 #[prop_or_default]
55 pub root_tabbable: bool,
56 #[prop_or_default]
57 pub multi: bool,
58 #[prop_or_default]
59 pub wrap_focus: bool,
60 #[prop_or_default]
61 pub item_roles: Option<String>,
62 #[prop_or_default]
63 pub inner_role: Option<String>,
64 #[prop_or_default]
65 pub noninteractive: bool,
66 /// Binds to `action` event on `list`
67 #[prop_or_default]
68 pub onaction: Callback<ListIndex>,
69 /// Binds to `selected` event `list`
70 #[prop_or_default]
71 pub onselected: Callback<SelectedDetail>,
72 /// [`WeakComponentLink`] for `List` which provides the following methods
73 /// - ```toggle(&self, index: usize, force: bool)```
74 /// - ```get_focused_item_index(&self) -> usize```
75 /// - ```focus_item_at_index(&self, index: usize)```
76 ///
77 /// See [`WeakComponentLink`] documentation for more information
78 #[prop_or_default]
79 pub list_link: WeakComponentLink<List>,
80 #[prop_or_default]
81 pub children: Children,
82}
83
84impl Component for List {
85 type Message = ();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected