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

Method close_list

src/elements/dropdown_button.rs:128–138  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

126 }
127
128 pub fn close_list(&self) {
129 self.list.uncapture();
130 self.list.set_visible(false);
131
132 //since removed by bring to front, readd
133 self.list.set_x(0.0);
134 self.list.set_y(self.h() + 1.0);
135 self.add(&self.list);
136
137 self.state.borrow_mut().is_open = false;
138 }
139
140 pub fn open_list(&self) {
141 self.list.set_visible(true);

Callers 4

ondeselectMethod · 0.80
onselectedMethod · 0.80
mousedownMethod · 0.80
mouseupMethod · 0.80

Calls 6

uncaptureMethod · 0.80
set_xMethod · 0.80
set_yMethod · 0.80
set_visibleMethod · 0.45
hMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected