require(["esri/domUtils"], function(domUtils) { /* code goes here */ });
Description
(Added at v3.8)
Utility methods related to working with the DOM.
When coding legacy (non-AMD) style, there is no need to require the module. All methods and properties are available in the namespace. For example,
esri.show()
.
Samples
Search for
samples that use this class.
Properties
documentBox | Object | Represents the size of the client side window or document at first load. |
Methods
Property Details
Represents the size of the client side window or document at first load. The size contains w
(width) and h
(height) properties, and these do not change on window resize.
Method Details
Sample:
require([
"esri/domUtils", ...
], function(domUtils, ... ) {
var node = domUtils.getNode(myHTMLElement);
...
});
Sample:
require([
"esri/domUtils", ...
], function(domUtils, ... ) {
domUtils.hide(myTable);
// or
domUtils.hide(widget);
...
});
Sample:
require([
"esri/domUtils", ...
], function(domUtils, ... ) {
domUtils.show(myDiv);
// or
domUtils.show(widget);
...
});
Sample:
require([
"esri/domUtils", ...
], function(domUtils, ... ) {
domUtils.toggle(myDiv);
...
});