-
-
Notifications
You must be signed in to change notification settings - Fork 241
/
Copy pathtabs.component.ts
52 lines (41 loc) · 953 Bytes
/
tabs.component.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { Component, OnInit } from "@angular/core";
@Component({
selector: "tabs-component",
template: `
<Tabs id="tabs">
<TabStrip>
<TabStripItem title="TabStripItem 1" iconSource="res://icon">
</TabStripItem>
<TabStripItem>
<Label text="TabStripItem 2">
</Label>
<Image src="res://icon">
</Image>
</TabStripItem>
<TabStripItem title="TabStripItem 3" iconSource="res://icon">
</TabStripItem>
</TabStrip>
<TabContentItem>
<StackLayout>
<Label text="TabContentItem 1">
</Label>
</StackLayout>
</TabContentItem>
<TabContentItem>
<StackLayout>
<Label text="TabContentItem 2">
</Label>
</StackLayout>
</TabContentItem>
<TabContentItem>
<StackLayout>
<Label text="TabContentItem 3">
</Label>
</StackLayout>
</TabContentItem>
</Tabs>
`,
})
export class TabsComponent implements OnInit {
public ngOnInit(): void { }
}