MCPcopy Create free account
hub / github.com/angular-rust/ux-components / on_close

Method on_close

src/elements/window.rs:315–321  ·  view source on GitHub ↗
(&self, e: &mut MouseEvent, _: f32)

Source from the content-addressed store, hash-verified

313 } //on_collapse
314
315 fn on_close(&self, e: &mut MouseEvent, _: f32) {
316 self.onclose.emit(&());
317
318 if self.closable {
319 self.close();
320 }
321 }
322
323 pub fn close(&self) {
324 self.set_visible(false);

Callers

nothing calls this directly

Calls 2

emitMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected