mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
ListPicker color and bckgColor set from CSS
This commit is contained in:
7
apps/app/ui-tests-app/css/list-picker.ts
Normal file
7
apps/app/ui-tests-app/css/list-picker.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export function loaded(args) {
|
||||
var items = [];
|
||||
for (var i = 0; i < 100; i++) {
|
||||
items.push("name" + i);
|
||||
}
|
||||
args.object.bindingContext = { items: items };
|
||||
}
|
||||
5
apps/app/ui-tests-app/css/list-picker.xml
Normal file
5
apps/app/ui-tests-app/css/list-picker.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<Page loaded="loaded">
|
||||
<StackLayout>
|
||||
<ListPicker items="{{ items }}" style="color: deeppink; background-color:lightskyblue" />
|
||||
</StackLayout>
|
||||
</Page>
|
||||
@@ -37,6 +37,7 @@ export function pageLoaded(args: EventData) {
|
||||
examples.set("all-uniform-border", "css/all-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("list-picker", "css/list-picker");
|
||||
//examples.set("border-playground", "css/border-playground");
|
||||
|
||||
let viewModel = new SubMainPageViewModel(wrapLayout, examples);
|
||||
|
||||
Reference in New Issue
Block a user