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

Method removeChild

src/components/Dialog/RNDialog.ts:66–73  ·  view source on GitHub ↗
(child: QWidget<any>)

Source from the content-addressed store, hash-verified

64 }
65 }
66 removeChild(child: QWidget<any>): void {
67 if (!this.layout()) {
68 console.warn("parent has no layout to remove child from");
69 return;
70 }
71 this.layout()!.removeWidget(child);
72 child.close();
73 }
74 static tagName = "dialog";
75}

Callers

nothing calls this directly

Calls 1

layoutMethod · 0.45

Tested by

no test coverage detected