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

Method insertBefore

src/components/Dialog/RNDialog.ts:61–65  ·  view source on GitHub ↗
(child: QWidget<any>, beforeChild: QWidget<any>)

Source from the content-addressed store, hash-verified

59 this.layout()!.addWidget(child);
60 }
61 insertBefore(child: QWidget<any>, beforeChild: QWidget<any>): void {
62 if (child! instanceof QDialog) {
63 this.appendChild(child);
64 }
65 }
66 removeChild(child: QWidget<any>): void {
67 if (!this.layout()) {
68 console.warn("parent has no layout to remove child from");

Callers

nothing calls this directly

Calls 1

appendChildMethod · 0.95

Tested by

no test coverage detected