dojo/dom-construct

Project owner:Eugene Lazutkin
since:V1.7

This module defines the core dojo DOM construction API. The convention for the return variable for this module is domConstruct.

Features

AMD Features

Legacy features are set in dojo/_base/html.

Examples

require(["dojo/dom", "dojo/dom-construct"], function(dom, domConstruct){
  // create a div node
  var node = domConstruct.create("div");

  // get a reference to another node
  var refNode = dom.byId("refNode");

  // place the constructed node at the referenced node
  domConstruct.place(node, refNode);
});

See also

API Reference: dojo.dom-construct

Error in the documentation? Can’t find what you are looking for? Let us know!