MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / removeChild

Method removeChild

src/components/View/RNView.ts:252–259  ·  view source on GitHub ↗
(child: QWidget<any>)

Source from the content-addressed store, hash-verified

250 this.layout()!.addWidget(child);
251 }
252 removeChild(child: QWidget<any>) {
253 if (!this.layout()) {
254 console.warn("parent has no layout to remove child from");
255 return;
256 }
257 this.layout()!.removeWidget(child);
258 child.close();
259 }
260}
261
262type Geometry = {

Callers

nothing calls this directly

Calls 1

layoutMethod · 0.95

Tested by

no test coverage detected