mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
small improvements to widget, add clock widget
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user