Function: addClass Add a CSS class name to an element. Safe where element already has the class name.
Parameters: element - {DOMElement} A DOM element node. name - {String} The CSS class name to add.
Returns: {DOMElement} The element.
HTMLElement
APIFunction: getHeight
Parameters: element - {DOMElement}
Returns: {Integer} The offset height of the element passed in
number
APIFunction: getStyle
Parameters: element - {DOMElement} style - {?}
Returns: {?}
any
Function: hasClass Tests if an element has the given CSS class name.
Parameters: element - {DOMElement} A DOM element node. name - {String} The CSS class name to search for.
Returns: {Boolean} The element has the given class name.
boolean
APIFunction: remove Remove the specified element from the DOM.
Parameters: element - {DOMElement}
Function: removeClass Remove a CSS class name from an element. Safe where element does not have the class name.
Parameters: element - {DOMElement} A DOM element node. name - {String} The CSS class name to remove.
Returns: {DOMElement} The element.
HTMLElement
APIFunction: toggle Toggle the visibility of element(s) passed in
Parameters: element - {DOMElement} Actually user can pass any number of elements
Function: toggleClass Remove a CSS class name from an element if it exists. Add the class name if it doesn't exist.
Parameters: element - {DOMElement} A DOM element node. name - {String} The CSS class name to toggle.
Returns: {DOMElement} The element.
HTMLElement
APIFunction: visible
Parameters: element - {DOMElement}
Returns: {Boolean} Is the element visible?
boolean