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

Class ChipsProps

src/chip.rs:109–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107/// [Documentation for properties](https://github.com/material-components/material-components-web-components/tree/master/packages/button#propertiesattributes)
108#[derive(Clone, PartialEq, Properties)]
109pub struct ChipsProps {
110 #[prop_or_default]
111 pub activatable: bool,
112 #[prop_or_default]
113 pub root_tabbable: bool,
114 #[prop_or_default]
115 pub multi: bool,
116 #[prop_or_default]
117 pub wrap_focus: bool,
118 #[prop_or_default]
119 pub item_roles: Option<String>,
120 #[prop_or_default]
121 pub inner_role: Option<String>,
122 #[prop_or_default]
123 pub noninteractive: bool,
124 /// Binds to `action` event on `list`
125 // #[prop_or_default]
126 // pub onaction: Callback<ListIndex>,
127 // /// Binds to `selected` event `list`
128 // #[prop_or_default]
129 // pub onselected: Callback<SelectedDetail>,
130 /// [`WeakComponentLink`] for `List` which provides the following methods
131 /// - ```toggle(&self, index: usize, force: bool)```
132 /// - ```get_focused_item_index(&self) -> usize```
133 /// - ```focus_item_at_index(&self, index: usize)```
134 ///
135 /// See [`WeakComponentLink`] documentation for more information
136 #[prop_or_default]
137 pub list_link: WeakComponentLink<Chips>,
138 #[prop_or_default]
139 pub children: Children,
140}
141
142// label=props.label
143// icon?=props.icon.as_ref()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected