# HG changeset patch # User cin # Date 2021-05-02 21:14:29 # Node ID f2499237b5bf0ac2d73a8e437b8f15fa8a6306a5 # Parent 1661e3ab870cb904832b0dcc1077659e41ef1952 DjxWidgetBase: implemented copying content from srcNode to contentNode 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 }); }