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

Method ondeselect

src/elements/dropdown_button.rs:107–111  ·  view source on GitHub ↗
(&self, e: &MouseEvent, c: &dyn Element)

Source from the content-addressed store, hash-verified

105 }
106
107 fn ondeselect(&self, e: &MouseEvent, c: &dyn Element) {
108 if !self.list.contains(e.x as f32, e.y as f32) {
109 self.close_list();
110 }
111 }
112
113 fn onselected(&self, idx: usize, c: &dyn Element, e: &MouseEvent) {
114 self.onselect.emit(&DropdownSelectEvent {

Callers

nothing calls this directly

Calls 2

close_listMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected