MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / init

Method init

apps/toolbox/src/pages/tabview.ts:7–16  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

5 private tabView: TabView;
6
7 init(page: Page) {
8 this.page = page;
9 this.tabView = page.getViewById('demoTabView') as TabView;
10
11 // Ensure initial font icon family so initial font:// icons render as expected
12 this.applyFontFamily('ns-playground-font');
13
14 // Give an initial color to demonstrate colorization of font icons
15 this.applyItemColor(new Color('#65ADF1'));
16 }
17
18 useSysIcons = () => {
19 if (!this.tabView || !this.tabView.items) return;

Callers 3

webpack.config.jsFile · 0.45
navigatingToFunction · 0.45
webpack.config.jsFile · 0.45

Calls 2

applyFontFamilyMethod · 0.95
applyItemColorMethod · 0.95

Tested by

no test coverage detected