/
multi-line-grouped.component.html
64 lines (62 loc) · 3.74 KB
/
multi-line-grouped.component.html
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
53
54
55
56
57
58
59
60
61
62
63
64
<TabView #tabView class="tab-view" sdkExampleTitle sdkToggleNavButton>
<GridLayout *tabItem="{title: 'Basic list'}">
<!-- >> multi-line-grouped-basic-html -->
<ListView [items]="countries" [itemTemplateSelector]="templateSelector" (itemTap)="onItemTapFirstList($event)" class="list-group"
separatorColor="white">
<ng-template nsTemplateKey="header" let-header="item">
<Label [text]="header.name" class="list-group-item h3 bg-primary" isUserInteractionEnabled="false" color="white" fontSize="24"></Label>
</ng-template>
<ng-template nsTemplateKey="footer" let-footer="item">
<Label [text]="footer.name" class="list-group-item" backgroundColor="gray"></Label>
</ng-template>
<ng-template nsTemplateKey="cell" let-country="item">
<StackLayout class="list-group-item">
<Label [text]="country.name" class="list-group-item-heading"></Label>
<Label [text]="country.desc" class="list-group-item-text" textWrap="true"></Label>
</StackLayout>
</ng-template>
</ListView>
<!-- << multi-line-grouped-basic-html -->
</GridLayout>
<GridLayout *tabItem="{title: 'Dividers'}">
<!-- >> multi-line-grouped-borders-html -->
<ListView [items]="countries" [itemTemplateSelector]="templateSelector" (itemTap)="onItemTapFirstList($event)" class="list-group"
separatorColor="gray">
<ng-template nsTemplateKey="header" let-header="item">
<Label [text]="header.name" class="list-group-item bg-primary" isUserInteractionEnabled="false" color="white" fontSize="24"></Label>
</ng-template>
<ng-template nsTemplateKey="footer" let-footer="item">
<Label [text]="footer.name" class="list-group-item" backgroundColor="gray"></Label>
</ng-template>
<ng-template nsTemplateKey="cell" let-country="item">
<StackLayout class="list-group-item">
<Label [text]="country.name" class="list-group-item-heading"></Label>
<Label [text]="country.desc" class="list-group-item-text" textWrap="true"></Label>
</StackLayout>
</ng-template>
</ListView>
<!-- << multi-line-grouped-borders-html -->
</GridLayout>
<GridLayout *tabItem="{title: 'Thumbnails'}">
<!-- >> multi-line-grouped-thumbs-html -->
<ListView [items]="countries" [itemTemplateSelector]="templateSelector" (itemTap)="onItemTapFirstList($event)" class="list-group"
separatorColor="gray">
<ng-template nsTemplateKey="header" let-header="item">
<Label [text]="header.name" class="list-group-item bg-primary" isUserInteractionEnabled="false" color="white" fontSize="24"></Label>
</ng-template>
<ng-template nsTemplateKey="footer" let-footer="item">
<Label [text]="footer.name" class="list-group-item" backgroundColor="gray"></Label>
</ng-template>
<ng-template nsTemplateKey="cell" let-country="item">
<GridLayout class="list-group-item" rows="*" columns="auto, *">
<Image col="0" [src]="country.imageSrc" class="thumb img-circle" verticalAlignment="top"></Image>
<StackLayout col="1">
<Label [text]="country.name" class="list-group-item-heading"></Label>
<Label [text]="country.desc" class="list-group-item-text" textWrap="true"></Label>
</StackLayout>
</GridLayout>
</ng-template>
</ListView>
<!-- << multi-line-grouped-thumbs-html -->
</GridLayout>
</TabView>