small improvements to widget, add clock widget

This commit is contained in:
Géry Debongnie
2019-01-24 13:48:31 +01:00
parent 3415d830c7
commit 299a6b4977
6 changed files with 78 additions and 26 deletions
+3
View File
@@ -21,6 +21,9 @@ export class Counter extends Widget<Env> {
this.state.counter = props.initialState || 0;
}
mounted() {
debugger;
}
increment(delta: number) {
this.updateState({ counter: this.state.counter + delta });
}