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

Method appendInitialChild

src/components/Tab/RNTab.ts:41–51  ·  view source on GitHub ↗
(tabItem: RNTabItem)

Source from the content-addressed store, hash-verified

39 }
40
41 appendInitialChild(tabItem: RNTabItem): void {
42 if (!(tabItem instanceof RNTabItem)) {
43 throw new Error("Children of tab should be of type TabItem");
44 }
45
46 if (tabItem.actualTabWidget) {
47 this.addTab(tabItem.actualTabWidget, new QIcon(), "");
48 tabItem.parentTab = this;
49 setTabItemProps(tabItem, this, tabItem.initialProps, {});
50 }
51 }
52 appendChild(child: RNTabItem): void {
53 this.appendInitialChild(child);
54 }

Callers 2

appendChildMethod · 0.95
index.tsFile · 0.45

Calls 1

setTabItemPropsFunction · 0.90

Tested by

no test coverage detected