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

Method add_item

src/elements/dropdown_button.rs:123–126  ·  view source on GitHub ↗

offset_x: f32 = 0.0, offset_y: f32 = 0.0

(&self, item: &dyn Element, offset_x: f32, offset_y: f32)

Source from the content-addressed store, hash-verified

121
122 // offset_x: f32 = 0.0, offset_y: f32 = 0.0
123 pub fn add_item(&self, item: &dyn Element, offset_x: f32, offset_y: f32) {
124 self.list.add_item(item, offset_x, offset_y);
125 self.list.set_visible(self.state.borrow().is_open);
126 }
127
128 pub fn close_list(&self) {
129 self.list.uncapture();

Callers

nothing calls this directly

Calls 1

set_visibleMethod · 0.45

Tested by

no test coverage detected