mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Extend test page issue-3354
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
export function clear(args) {
|
export function clear(args) {
|
||||||
const tv = args.object.page.getViewById("tv");
|
const tv1 = args.object.page.getViewById("tv1");
|
||||||
tv.text= "";
|
tv1.text = "";
|
||||||
|
const tv2 = args.object.page.getViewById("tv2");
|
||||||
|
tv2.text = "";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
<Page xmlns="http://schemas.nativescript.org/tns.xsd">
|
||||||
<StackLayout class="p-20">
|
<StackLayout class="p-20">
|
||||||
<TextView id="tv" text="" hint="the hint" ></TextView>
|
<TextView id="tv" text="" hint="the hint"></TextView>
|
||||||
|
<TextView text="" hint="the hint"></TextView>
|
||||||
<Button text="clear text" tap="clear"></Button>
|
<Button text="clear text" tap="clear"></Button>
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
</Page>
|
</Page>
|
||||||
Reference in New Issue
Block a user