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) {
|
||||
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 = "";
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user