Project owner:Eugene Lazutkin

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


AMD Features

Legacy features are set in dojo/_base/html.


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, refNode);

See also

API Reference: dojo.dom-construct

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