mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Rename the files
This commit is contained in:
16
tests/app/xml-declaration/mymodulewithxml/MyControl.ts
Normal file
16
tests/app/xml-declaration/mymodulewithxml/MyControl.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import observable = require("data/observable");
|
||||
import view = require("ui/core/view");
|
||||
import label = require("ui/label");
|
||||
|
||||
var count = 0;
|
||||
export function buttonTap2(args: observable.EventData) {
|
||||
count++;
|
||||
|
||||
var parent = (<view.View>args.object).parent;
|
||||
if (parent) {
|
||||
var lbl = parent.getViewById<label.Label>("Label1");
|
||||
if (lbl) {
|
||||
lbl.text = "You clicked " + count + " times!";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user