Defines static methods and properties that provide helper APIs for manipulating and inspecting DOM elements.
Adds a CSS class to a DOM element if the class is not already part of the DOM element. This member is static and can be invoked without creating an instance of the class. If the element does not support a CSS class, no change is made to the element.
The Sys.UI.DomElement object to add the CSS class to.
The name of the CSS class to add.
Initializes a new instance of the Sys.UI.DomElement class.
Gets a value that indicates whether the DOM element contains the specified CSS class. This member is static and can be invoked without creating an instance of the class.
The Sys.UI.DomElement object to test for the CSS class.
The name of the CSS class to test for.
boolean
true if the element contains the specified CSS class; otherwise, false.
Gets a set of integer coordinates that represent the position, width, and height of a DOM element. This member is static and can be invoked without creating an instance of the class.
The Sys.UI.DomElement instance to get the coordinates of.
Object
An object of the JavaScript type Object that contains the x-coordinate and y-coordinate of the upper-left corner, the width, and the height of the element in pixels.
The ID of the element to find.
HTMLElement
any
Gets the absolute position of a DOM element relative to the upper-left corner of the owner frame or window. This member is static and can be invoked without creating an instance of the class. *
The target element. *
An object of the JavaScript type Object that contains the x-coordinate and y-coordinate of the element in pixels.
Object
Gets a value that indicates whether a DOM element is currently visible on the Web page. This member is static and can be invoked without creating an instance of the class.
The target DOM element.
boolean
true if element is visible on the Web page; otherwise, false
Determines whether the specified object is a DOM element.
An object
boolean
true if the object is a DOM element; otherwise, false.
Raises a bubble event. A bubble event causes an event to be raised and then propagated up the control hierarchy until it is handled.
The DOM element that triggers the event.
The event arguments
Removes a CSS class from a DOM element. This member is static and can be invoked without creating an instance of the class. If the element does not include a CSS class, no change is made to the element.
The Sys.UI.DomElement object to remove the CSS class from.
The name of the CSS class to remove.
Returns the element that has either the specified ID in the specified container, or is the specified element itself. The resolveElement method is used to verify that an ID or an object can be resolved as an element. *
The element to resolve, or the ID of the element to resolve. This parameter can be null.
(Optional) The specified container.
A DOM element.
HTMLElement
any
Sets the position of a DOM element. This member is static and can be invoked without creating an instance of the class. he left and top style attributes (upper-left corner) of an element specify the relative position of an element. The actual position will depend on the offsetParent property of the target element and the positioning mode of the element. *
The target element.
The x-coordinate in pixels.
The y-coordinate in pixels.
Sets the layout characteristics of a DOM element when it is hidden by invoking the Sys.UI.DomElement.setVisible method. This member is static and can be invoked without creating an instance of the class.
Use the setVisibilityMode method to set the layout characteristics of a DOM element when it is hidden by invoking the Sys.UI.DomElement.setVisible method. For example, if value is set to Sys.UI.VisibilityMode.collapse, the element uses no space on the page when the setVisible method is called to hide the element.
The target DOM element.
A Sys.UI.VisibilityMode enumeration value.
Sets a DOM element to be visible or hidden. This member is static and can be invoked without creating an instance of the class.
Use the setVisible method to set a DOM element as visible or hidden on the Web page. If you invoke this method with value set to false for an element whose visibility mode is set to "hide," the element will not be visible. However, it will occupy space on the page. If the element's visibility mode is set to "collapse," the element will occupy no space in the page. For more information about how to set the layout characteristics of hidden DOM elements, see Sys.UI.DomElement setVisibilityMode Method.
The target DOM element.
true to make element visible on the Web page; false to hide element.
Toggles a CSS class in a DOM element. This member is static and can be invoked without creating an instance of the class. Use the toggleCssClass method to hide a CSS class of an element if it is shown, or to show a CSS class of an element if it is hidden.
The Sys.UI.DomElement object to toggle.
The name of the CSS class to toggle.