Login Register Help
API Documentation
Choose a stylesheet:

Constructordijit._Templated

dojo.require("dijit._Templated");
Mixin for widgets that are instantiated from a template

Usage

var foo=new dijit._Templated();

Jump to PropertiesFunctionsBack to top

Construct the UI for this widget from a template, setting this.domNode.
Functiondijit._Templated.getCachedTemplate(templatePath: String, templateString: String?, alwaysUseString): String | Node
Static method to get a template based on the templatePath or templateString key
Strips <?xml ...?> declarations so that external SVG and XML documents can be added to a document without worry. Also, if the string is an HTML document, only the part inside the body tag is returned.
Function_attachTemplateNodes(rootNode: DomNode|Array[Widgets], getAttrFunc: Function?)
Iterate through the template and attach functions and nodes accordingly.
Relocate source contents to templated container node. this.containerNode must be able to receive children, or exceptions will be thrown.
Does substitution of ${foo} type properties in template string

Jump to FunctionsPropertiesBack to top

Path to template (HTML file) for this widget relative to dojo.baseUrl. Deprecated: use templateString with dojo.cache() instead.
A string that represents the widget template. Pre-empts the templatePath. In builds that have their strings "interned", the templatePath is converted to an inline templateString, thereby preventing a synchronous network call. Use in conjunction with dojo.cache() to load from a file.
Should we parse the template to find widgets that might be declared in markup inside it? False by default.
A fallback to preserve the 1.0 - 1.3 behavior of children in templates having their startup called before the parent widget fires postCreate. Defaults to 'false', causing child widgets to have their .startup() called immediately before a parent widget .startup(), but always after the parent .postCreate(). Set to 'true' to re-enable to previous, arguably broken, behavior.