feat(core): nativescript.config and webpack updates (#8801)

This commit is contained in:
Nathan Walker
2020-09-01 15:53:37 -07:00
committed by GitHub
parent 757a2ffdf7
commit 54cce4f20c
1093 changed files with 332 additions and 316 deletions

View File

@ -0,0 +1,21 @@
import { StackLayout, Label, Button, EventData } from '@nativescript/core';
export class MyControl extends StackLayout {
constructor() {
super();
var counter: number = 0;
var lbl = new Label();
var btn = new Button();
btn.text = 'Tap me!';
btn.on(Button.tapEvent, (args: EventData) => {
lbl.text = 'Tap ' + counter++;
});
this.addChild(lbl);
this.addChild(btn);
this.className = 'MyStackLayout';
}
}