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

Method select

src/menu.rs:341–347  ·  view source on GitHub ↗

Binds to `select` method. `index` is `JsValue` because `MWCMenuIndex` mentioned in mwc docs is completely undocumented. See [here](https://github.com/material-components/material-components-web-components/tree/master/packages/menu#methods) for details

(&self, index: &JsValue)

Source from the content-addressed store, hash-verified

339 ///
340 /// See [here](https://github.com/material-components/material-components-web-components/tree/master/packages/menu#methods) for details
341 pub fn select(&self, index: &JsValue) {
342 // (*self.borrow().as_ref().unwrap().get_component().unwrap())
343 // .node_ref
344 // .cast::<Menu>()
345 // .unwrap()
346 // .select(index);
347 }
348
349 /// Binds to `show` method.
350 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected