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

Method flip_open_state

src/drawer.rs:247–254  ·  view source on GitHub ↗

A convenience method to for `drawer.open = !drawer.open`

(&self)

Source from the content-addressed store, hash-verified

245impl WeakComponentLink<Drawer> {
246 /// A convenience method to for `drawer.open = !drawer.open`
247 pub fn flip_open_state(&self) {
248 // let node_ref = (*self.borrow().as_ref().unwrap().get_component().unwrap())
249 // .node_ref
250 // .clone();
251 // let element = node_ref.cast::<Drawer>().unwrap();
252 // let open = element.open();
253 // element.set_open(!open);
254 }
255}
256
257pub struct DrawerItem {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected