Merge branch 'master' of https://github.com/NativeScript/NativeScript into clickablespan

This commit is contained in:
Eduardo Speroni
2019-05-06 19:48:53 -03:00
43 changed files with 704 additions and 324 deletions

View File

@@ -1,7 +1,16 @@
<Page>
<StackLayout>
<Progress value="42" color="red" backgroundColor="green" height="10" width="300" />
<Switch checked="true" color="red" backgroundColor="green" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
<Switch checked="false" color="red" backgroundColor="green" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
<Switch checked="true" color="red" backgroundColor="green" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
<Switch checked="false" color="red" backgroundColor="green" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
<Switch checked="true" color="red" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
<Switch checked="false" color="red" offBackgroundColor="purple" height="30" width="52" borderWidth="2" borderColor="blue" borderRadius="15" />
<Switch />
</StackLayout>
</Page>

View File

@@ -0,0 +1,18 @@
import { NavigatedData } from "tns-core-modules/ui/page";
import { Page } from "tns-core-modules/ui/page";
import { Observable } from "tns-core-modules/data/observable";
export class HomeViewModel extends Observable {
public stringValue = "test";
public stringNumericValue = "12345";
public numericValue = 12345;
constructor() {
super();
}
}
export function onNavigatingTo(args: NavigatedData) {
const page = <Page>args.object;
page.bindingContext = new HomeViewModel();
}

View File

@@ -0,0 +1,16 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd" id="main-page" navigatingTo="onNavigatingTo">
<StackLayout>
<Label text="string value:" />
<Label text="{{ stringValue }}" />
<Label text="string value with uppercase:" />
<Label textTransform="uppercase" text="{{ stringValue }}" />
<Label text="string numeric value:" />
<Label text="{{ stringNumericValue }}" />
<Label text="string numeric value with uppercase:" />
<Label textTransform="uppercase" text="{{ stringNumericValue }}" />
<Label text="numeric value:" />
<Label text="{{ numericValue }}" />
<Label text="numeric value with uppercase:" />
<Label textTransform="uppercase" text="{{ numericValue }}" />
</StackLayout>
</Page>

View File

@@ -26,6 +26,7 @@ export function loadExamples() {
examples.set("tabview-with-scrollview_4022", "issues/tabview-with-scrollview_4022");
examples.set("3354-ios", "issues/issue-3354");
examples.set("4450", "issues/issue-4450");
examples.set("5125", "issues/issue-5125");
examples.set("5274", "issues/issue-5274");
examples.set("ng-repo-1599", "issues/issue-ng-repo-1599");
examples.set("ng-repo-1626", "issues/issue-ng-repo-1626");