##// END OF EJS Templates
Added tag v1.0.0-rc12 for changeset 32b72f33756d
Added tag v1.0.0-rc12 for changeset 32b72f33756d

File last commit:

r2:8ec37bf1b4d1 default
r27:870272ba0fae default
Show More
_TemplatedMixin.d.ts
45 lines | 1.4 KiB | video/mp2t | TypeScriptLexer
/ src / typings / dijit / _TemplatedMixin.d.ts
cin
created typings for basic part of dojo and dijit further work is required to...
r2 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;