##// 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:

r2:8ec37bf1b4d1 default
r30:a46488b209e8 v1.0.0-rc14 default
Show More
_TemplatedMixin.d.ts
45 lines | 1.4 KiB | video/mp2t | TypeScriptLexer
/ src / typings / dijit / _TemplatedMixin.d.ts
import _AttachMixin = require("./_AttachMixin");
import { _WidgetBaseConstructor } from "./_WidgetBase";
interface _TemplatedMixin extends _AttachMixin {
/**
* A string that represents the widget template.
* Use in conjunction with dojo.cache() to load from a file.
*/
templateString: string;
/**
* Path to template (HTML file) for this widget relative to dojo.baseUrl.
* Deprecated: use templateString with require([... "dojo/text!..."], ...) instead
*/
templatePath: string;
/**
* Set _AttachMixin.searchContainerNode to true for back-compat for widgets that have data-dojo-attach-point's
* and events inside this.containerNode. Remove for 2.0.
*/
searchContainerNode: boolean;
/**
* Construct the UI for this widget from a template, setting this.domNode.
*/
buildRendering(): void;
}
interface _TemplatedMixinConstructor extends _WidgetBaseConstructor<_TemplatedMixin> {
/**
* Static method to get a template based on the templatePath or
* templateString key
*/
getCachedTemplate(templateString: string, alwaysUseString: string, doc?: Document): string | HTMLElement;
}
declare module "dojo/_base/kernel" {
interface Dijit {
_TemplatedMixin: _TemplatedMixinConstructor;
}
}
declare const _TemplatedMixin: _TemplatedMixinConstructor;
export = _TemplatedMixin;