mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
Include test for listview with separator color
This commit is contained in:

committed by
vakrilov

parent
70b2ab2f54
commit
06908de826
@ -1,6 +1,6 @@
|
|||||||
export function loaded(args) {
|
export function loaded(args) {
|
||||||
var items = [];
|
var items = [];
|
||||||
for (var i = 0; i < 100; i++) {
|
for (var i = 0; i < 5; i++) {
|
||||||
items.push("name" + i);
|
items.push("name" + i);
|
||||||
}
|
}
|
||||||
args.object.bindingContext = { items: items };
|
args.object.bindingContext = { items: items };
|
||||||
|
@ -1,7 +1,16 @@
|
|||||||
<Page loaded="loaded">
|
<Page loaded="loaded">
|
||||||
<ListView items="{{ items }}">
|
<StackLayout>
|
||||||
|
<Label text="lightskyblue separator"></Label>
|
||||||
|
<ListView items="{{ items }}" style="separator-color:red; background-color:lightskyblue">
|
||||||
<ListView.itemTemplate>
|
<ListView.itemTemplate>
|
||||||
<Label text="{{ $value }}" style="text-transform: uppercase; text-decoration: underline;" />
|
<Label text="{{ $value }}"/>
|
||||||
</ListView.itemTemplate>
|
</ListView.itemTemplate>
|
||||||
</ListView>
|
</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>
|
</Page>
|
@ -38,6 +38,7 @@ export function pageLoaded(args: EventData) {
|
|||||||
examples.set("all-non-uniform-border", "css/all-non-uniform-border");
|
examples.set("all-non-uniform-border", "css/all-non-uniform-border");
|
||||||
examples.set("margins-paddings-with-percentage", "css/margins-paddings-with-percentage");
|
examples.set("margins-paddings-with-percentage", "css/margins-paddings-with-percentage");
|
||||||
examples.set("list-picker", "css/list-picker");
|
examples.set("list-picker", "css/list-picker");
|
||||||
|
examples.set("listview", "css/listview");
|
||||||
examples.set("padding-and-border", "css/padding-and-border");
|
examples.set("padding-and-border", "css/padding-and-border");
|
||||||
examples.set("border-playground", "css/border-playground");
|
examples.set("border-playground", "css/border-playground");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user