dojox/dtl/render/dom.js

  • Provides:

    • dojox.dtl.render.dom
  • Requires:

    • dojox.dtl.Context in common
    • dojox.dtl.dom in common
  • dojox.dtl.render.dom.Render

    • type
      Function
    • parameters:
      • attachPoint: (typeof DOMNode)
      • tpl: (typeof dojox.dtl.DomTemplate)
    • source: [view]
       this._tpl = tpl;
       this.domNode = dojo.byId(attachPoint);
    • summary
  • dojox.dtl.render.dom.Render._tpl

    • summary
  • dojox.dtl.render.dom.Render.domNode

    • summary
  • dojox.dtl.render.dom.Render.setAttachPoint

    • type
      Function
    • parameters:
      • node: (typeof Node)
    • source: [view]
        this.domNode = node;
    • summary
  • dojox.dtl.render.dom.Render.render

    • type
      Function
    • parameters:
      • context: (typeof Object)
      • tpl: (typeof dojox.dtl.DomTemplate)
      • buffer: (typeof dojox.dtl.DomBuffer)
    • source: [view]
        if(!this.domNode){
         throw new Error("You cannot use the Render object without specifying where you want to render it");
        }


        this._tpl = tpl = tpl || this._tpl;
        buffer = buffer || tpl.getBuffer();
        context = context || new dojox.dtl.Context();


        var frag = tpl.render(context, buffer).getParent();
        if(!frag){
         throw new Error("Rendered template does not have a root node");
        }


        if(this.domNode !== frag){
         this.domNode.parentNode.replaceChild(frag, this.domNode);
         this.domNode = frag;
        }
    • summary
  • dojox.dtl.render.dom

    • type
      Object
    • summary
  • dojox.dtl.render

    • type
      Object
    • summary
  • dojox.dtl

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary