dojo/dom-style

Project owner:Eugene Lazutkin
since:V1.7

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

Features

AMD Features

Legacy features are set in dojo/_base/html.

Examples

Here is an example of how to set the style of display: none; on a DOM node:

require(["dojo/dom", "dojo/dom-style"], function(dom, domStyle){
  var myNode = dom.byId("myNode");
  domStyle.set(myNode, "display", "none");
});

See also

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