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

Method toggle

src/chip.rs:205–211  ·  view source on GitHub ↗

Binds to `toggle` method. See [here](https://github.com/material-components/material-components-web-components/tree/master/packages/list#methods) for details

(&self, index: usize, force: bool)

Source from the content-addressed store, hash-verified

203 ///
204 /// See [here](https://github.com/material-components/material-components-web-components/tree/master/packages/list#methods) for details
205 pub fn toggle(&self, index: usize, force: bool) {
206 // let list = (*self.borrow().as_ref().unwrap().get_component().unwrap())
207 // .node_ref
208 // .cast::<List>()
209 // .unwrap();
210 // list.toggle(index, force)
211 }
212
213 /// Binds to `getFocusedItemIndex` method.
214 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected