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

Method appendChild

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

Source from the content-addressed store, hash-verified

48 this.appendChild(child);
49 }
50 appendChild(child: QWidget<any>): void {
51 if (!child || child instanceof QDialog) {
52 return;
53 }
54 if (!this.layout()) {
55 const flexLayout = new FlexLayout();
56 flexLayout.setFlexNode(this.getFlexNode());
57 this.setLayout(flexLayout);
58 }
59 this.layout()!.addWidget(child);
60 }
61 insertBefore(child: QWidget<any>, beforeChild: QWidget<any>): void {
62 if (child! instanceof QDialog) {
63 this.appendChild(child);

Callers 2

appendInitialChildMethod · 0.95
insertBeforeMethod · 0.95

Calls 2

layoutMethod · 0.45
setLayoutMethod · 0.45

Tested by

no test coverage detected