dijit/_WidgetsInTemplateMixin (version 1.10)

Summary

Mixin to supplement _TemplatedMixin when template contains widgets

See the dijit/_WidgetsInTemplateMixin reference documentation for more information.

Property Summary

  • _earlyTemplatedStartupA fallback to preserve the 1.0 - 1.3 behavior of children in templates having their startup called before the parent widget fires postCreate.
  • contextRequireUsed to provide a context require to the dojo/parser in order to be able to use relative MIDs (e.g. ./Widget) in the widget's template.
  • widgetsInTemplateShould we parse the template to find widgets that might be declared in markup inside it? (Remove for 2.0 and assume true)

Method Summary

Properties

_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.

contextRequire

Used to provide a context require to the dojo/parser in order to be able to use relative MIDs (e.g. ./Widget) in the widget's template.

widgetsInTemplate

Should we parse the template to find widgets that might be declared in markup inside it? (Remove for 2.0 and assume true)

Methods

_beforeFillContent()
_processTemplateNode(baseNode,getAttrFunc,attachFunc)
Parameter Type Description
baseNode DOMNode | Widget
getAttrFunc undefined
attachFunc undefined
Returns:boolean | undefined
startup()
Error in the documentation? Can’t find what you are looking for? Let us know!