##// END OF EJS Templates
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods
Added 'Attrs', 'Events' type parameters to DjxWidgetBase, typed 'on' and 'emit' methods

File last commit:

r24:9b77ac3bf8f2 v1.0.0-rc11 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
DjxFragment.ts
24 lines | 586 B | video/mp2t | TypeScriptLexer
/ src / main / ts / tsx / DjxFragment.ts
cin
Added DjxFragment...
r19 import { _Widget } from "./WidgetContext";
import { MapOf } from "@implab/core-amd/interfaces";
cin
Added @prototype decorator
r24 import { prototype } from "../declare";
cin
Added DjxFragment...
r19
/** Special widget used to create a document fragment */
export class DjxFragment implements _Widget {
cin
Added @prototype decorator
r24 @prototype()
cin
Added DjxFragment...
r19 domNode: Node;
containerNode?: Node;
constructor() {
this.domNode = this.containerNode = document.createDocumentFragment();
}
get(attr: string) {
return undefined;
}
set(attr: string, value: any): void;
set(attrs: MapOf<any>): void;
set() {
/* do nothing */
}
}