Extend test page issue-3354

This commit is contained in:
SvetoslavTsenov
2017-06-05 11:06:00 +03:00
parent a01c692ff5
commit 1b260ac2b5
2 changed files with 6 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
export function clear(args) {
const tv = args.object.page.getViewById("tv");
tv.text= "";
const tv1 = args.object.page.getViewById("tv1");
tv1.text = "";
const tv2 = args.object.page.getViewById("tv2");
tv2.text = "";
}

View File

@@ -1,6 +1,7 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
<StackLayout class="p-20">
<TextView id="tv" text="" hint="the hint"></TextView>
<TextView text="" hint="the hint"></TextView>
<Button text="clear text" tap="clear"></Button>
</StackLayout>
</Page>