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

Method setIcons

apps/toolbox/src/pages/tabview.ts:42–55  ·  view source on GitHub ↗
(iconSources: string[])

Source from the content-addressed store, hash-verified

40 };
41
42 private setIcons(iconSources: string[]) {
43 const items = this.tabView.items as TabViewItem[];
44 let isSystemIcons: boolean;
45 for (let i = 0; i < items.length; i++) {
46 const iconSource = iconSources[i % iconSources.length];
47 items[i].iconSource = iconSource;
48 if (iconSource.startsWith(Utils.SYSTEM_PREFIX)) {
49 isSystemIcons = true;
50 }
51 }
52 if (__APPLE__) {
53 this.tabView.tabTextFontSize = isSystemIcons ? 11 : null;
54 }
55 }
56
57 private applyFontFamily(family: string) {
58 if (!this.tabView || !this.tabView.items) return;

Callers 1

TabViewDemoModelClass · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected