dojo/NodeList-html.js

  • Provides:

    • dojo.NodeList-html
  • dojo.NodeList.html

    • type
      Function
    • parameters:
      • content: (typeof )
      • params: (typeof Object)
    • source: [view]
        var dhs = new dojo.html._ContentSetter(params || {});
        this.forEach(function(elm){
         dhs.node = elm;
         dhs.set(content);
         dhs.tearDown();
        });
        return this; // dojo.NodeList
    • summary
      see `dojo.html.set()`. Set the content of all elements of this NodeList
    • description
      Based around `dojo.html.set()`, set the content of the Elements in a
      NodeList to the given content (string/node/nodelist), with optional arguments
      to further tune the set content behavior.
    • returns
      dojo.NodeList
    • example
      
       dojo.query(".thingList").html("<li dojoType='dojo.dnd.Moveable'>1</li><li dojoType='dojo.dnd.Moveable'>2</li><li dojoType='dojo.dnd.Moveable'>3</li>",
       {
       	parseContent: true,
       	onBegin: function(){
       		this.content = this.content.replace(/([0-9])/g, this.id + ": $1");
       		this.inherited("onBegin", arguments);
       	}
       }).removeClass("notdone").addClass("done");
  • dojo.NodeList-html

    • type
      Object
    • summary
  • dojo

    • type
      Object
    • summary