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

Method add

src/elements/scrollable.rs:305–317  ·  view source on GitHub ↗
(&self, child: &dyn Element)

Source from the content-addressed store, hash-verified

303 }
304
305 fn add(&self, child: &dyn Element) {
306 //if the internal controls add them normally
307 if !self.state.borrow().ready {
308 // self.base.add(child);
309 } else {
310 self.container.add(child);
311
312 self.refresh_scroll();
313
314 child.set_clip(Some(self.id()));
315 // depth = depth;
316 }
317 }
318
319 fn remove(&self, child: Id) {
320 // self.base.remove(child);

Callers

nothing calls this directly

Calls 3

set_clipMethod · 0.80
refresh_scrollMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected