Clear Up
SharpKit Reference

AbstractElement Class

Namespace: Ext.dom

Base Types

System.Object

Constructors

Methods

Name Description
attach(object)
contains(object) Returns true if this element is an ancestor of the passed element @param {HTMLElement/String} el The element to check @return {Boolean} True if this element is an ancestor of el, else false
getAttribute(JsString, JsString) Returns the value of an attribute from the element's underlying DOM node. @param {String} name The attribute name @param {String} [namespace] The namespace in which to look for the attribute @return {String} The attribute value
getHTML() Returns the innerHTML of an Element or an empty string if the element's dom no longer exists.
getValue(bool) Returns the value of the "value" attribute @param {Boolean} asNumber true to parse the value as a number @return {String/Number}
getVisibilityMode()
hide() Hide this element - Uses display mode to determine whether to use "display" or "visibility". See {@link #setVisible}. @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object @return {Ext.Element} this
is(JsString) Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child) @param {String} selector The simple selector to test @return {Boolean} True if this element matches the selector, else false
remove() Removes this element's dom reference. Note that event and cache removal is handled at {@link Ext#removeNode Ext.removeNode}
set(object, bool) Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) @param {Object} o The object with the attributes @param {Boolean} [useSet=true] false to override the default setAttribute to use expandos. @return {Ext.dom.Element} this
setHTML(JsString) Set the innerHTML of this element @param {String} html The new HTML @return {Ext.Element} this
setVisibilityMode(object) Use this to change the visisbiliy mode between {@link #VISIBILITY}, {@link #DISPLAY} or {@link #OFFSETS}.
setVisible(bool, object) Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use the display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property. @param {Boolean} visible Whether the element is visible @param {Boolean/Object} animate (optional) True for the default animation, or a standard Element animation config object @return {Ext.Element} this
show() Show this element - Uses display mode to determine whether to use "display" or "visibility". See {@link #setVisible}. @param {Boolean/Object} animate (optional) true for the default animation or a standard Element animation config object @return {Ext.Element} this
update(JsString) Update the innerHTML of this element @param {String} html The new HTML @return {Ext.dom.Element} this

Properties

Name Description
defaultUnit @property {String} defaultUnit The default unit to append to CSS values where a unit isn't provided.
HTML Set the innerHTML of this element @param {String} html The new HTML @return {Ext.Element} this
VisibilityMode Use this to change the visisbiliy mode between {@link #VISIBILITY}, {@link #DISPLAY} or {@link #OFFSETS}.
© Copyright 2005-2011 SharpKit. All rights reserved.