Revert listview tests

This commit is contained in:
SvetoslavTsenov
2017-02-21 15:28:37 +02:00
parent 137bb1e0a4
commit 6a2c94a94e
5 changed files with 27 additions and 12 deletions

View File

@ -1,6 +1,6 @@
export function loaded(args) {
var items = [];
for (var i = 0; i < 5; i++) {
for (var i = 0; i < 100; i++) {
items.push("name" + i);
}
args.object.bindingContext = { items: items };

View File

@ -1,16 +1,7 @@
<Page loaded="loaded">
<StackLayout>
<Label text="lightskyblue separator"></Label>
<ListView items="{{ items }}" style="separator-color:red; background-color:lightskyblue">
<ListView items="{{ items }}" >
<ListView.itemTemplate>
<Label text="{{ $value }}"/>
<Label text="{{ $value }}" style="text-transform: uppercase; text-decoration: underline;"/>
</ListView.itemTemplate>
</ListView>
<Label text="transparent separator"></Label>
<ListView items="{{ items }}" style="separator-color:transparent; background-color:transparent">
<ListView.itemTemplate>
<Label text="{{ $value }}" />
</ListView.itemTemplate>
</ListView>
</StackLayout>
</Page>

View File

@ -0,0 +1,7 @@
export function loaded(args) {
var items = [];
for (var i = 0; i < 5; i++) {
items.push("name" + i);
}
args.object.bindingContext = { items: items };
}

View File

@ -0,0 +1,16 @@
<Page loaded="loaded">
<StackLayout>
<Label text="lightskyblue separator"></Label>
<ListView items="{{ items }}" style="separator-color:red; background-color:lightskyblue">
<ListView.itemTemplate>
<Label text="{{ $value }}"/>
</ListView.itemTemplate>
</ListView>
<Label text="transparent separator"></Label>
<ListView items="{{ items }}" style="separator-color:transparent; background-color:transparent">
<ListView.itemTemplate>
<Label text="{{ $value }}" />
</ListView.itemTemplate>
</ListView>
</StackLayout>
</Page>

View File

@ -39,6 +39,7 @@ export function pageLoaded(args: EventData) {
examples.set("margins-paddings-with-percentage", "css/margins-paddings-with-percentage");
examples.set("list-picker", "css/list-picker");
examples.set("listview", "css/listview");
examples.set("listview_bg_separator_color", "css/listview_bg_separator_color");
examples.set("padding-and-border", "css/padding-and-border");
examples.set("border-playground", "css/border-playground");