diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ ], "author": "Implab team", "license": "BSD-2-Clause", - "repository": "https://hg.code.sf.net/p/implabjs/djx", + "repository": "https://code.implab.org/implab/implabjs-djx", "publishConfig": { "access": "public" }, diff --git a/src/main/ts/tsx/DjxWidgetBase.ts b/src/main/ts/tsx/DjxWidgetBase.ts --- a/src/main/ts/tsx/DjxWidgetBase.ts +++ b/src/main/ts/tsx/DjxWidgetBase.ts @@ -21,7 +21,7 @@ export interface DjxWidgetBase(eventName: K, cb: (evt: Events[K]) => void): dojo.WatchHandle; - emit(eventName: K, evt: Omit & EventArgs ): void; + emit(eventName: K, evt: Omit & EventArgs): void; } @djclass @@ -30,6 +30,16 @@ export abstract class DjxWidgetBase; @@ -68,7 +78,8 @@ export abstract class DjxWidgetBase
{props.children}
; - return
+ return
this._onSubmit(e)} tabIndex={3} style={{ alignContent: "center", border: "1px solid" }} >

this._onIncClick(e)}>[+] @@ -36,6 +36,10 @@ export class MyWidget extends djbase(Djx
; } + _onSubmit(e: Event) { + + } + _onIncClick(e: MouseEvent) { this.emit("count-inc", { bubbles: false }); }