Class Index | File Index

Classes


Class dijit.Templated


Defined in: _Templated.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Mixin for widgets that are instantiated from a template.
Field Summary
Field Attributes Field Name and Description
<private>  
List of widget attribute names associated with dojoAttachPoint=.
<private>  
A fallback to preserve the 1.0 - 1.3 behavior of children in templates having their startup called before the parent widget fires postCreate.
<private>  
If using a cached widget template node poses issues for a particular widget class, it can set this property to ensure that its template is always re-built from a string
<static>  
dijit.Templated.getCachedTemplate
Static method to get a template based on the templatePath or templateString key
 
Path to template (HTML file) for this widget relative to dojo.baseUrl.
 
A string that represents the widget template.
 
Should we parse the template to find widgets that might be declared in markup inside it? False by default.
Method Summary
Method Attributes Method Name and Description
<private>  
_attachTemplateNodes(rootNode, getAttrFunc)
Iterate through the template and attach functions and nodes accordingly.
<private>  
_fillContent(source)
Relocate source contents to templated container node.
<private>  
Does substitution of ${foo} type properties in template string
Class Detail
dijit.Templated()
Mixin for widgets that are instantiated from a template.
Field Detail
<private> {String[]} _attachPoints
List of widget attribute names associated with dojoAttachPoint=... in the template, ex: ["containerNode", "labelNode"]

<private> {Boolean} _earlyTemplatedStartup
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.

<private> {Boolean} _skipNodeCache
If using a cached widget template node poses issues for a particular widget class, it can set this property to ensure that its template is always re-built from a string

<static> {String|DomNode} dijit.Templated.getCachedTemplate
Static method to get a template based on the templatePath or templateString key

{String} templatePath
Path to template (HTML file) for this widget relative to dojo.baseUrl.
Deprecated:
use templateString with dojo.cache() instead.

{String} templateString
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.

{Boolean} widgetsInTemplate
Should we parse the template to find widgets that might be declared in markup inside it? False by default.
Method Detail
<private> _attachTemplateNodes(rootNode, getAttrFunc)
Iterate through the template and attach functions and nodes accordingly. Map widget properties and functions to the handlers specified in the dom node and it's descendants. This function iterates over all nodes and looks for these properties:
Parameters:
{DomNode|Widget[]} rootNode
the node to search for properties. All children will be searched.
{Function} getAttrFunc Optional
a function which will be used to obtain property for a given DomNode/Widget

<private> _fillContent(source)
Relocate source contents to templated container node. this.containerNode must be able to receive children, or exceptions will be thrown.
Parameters:
{DomNode} source

<private> _stringRepl(tmpl)
Does substitution of ${foo} type properties in template string
Parameters:
{String} tmpl

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Sep 20 2010 21:52:25 GMT+0900 (JST)