Ext.data.JsonP.Ext_dom_Element({"mixins":[],"code_type":"nop","inheritable":false,"component":false,"meta":{},"mixedInto":[],"uses":[],"aliases":{},"parentMixins":[],"superclasses":["Ext.Base","Ext.dom.AbstractElement"],"members":{"event":[{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMActivate","id":"event-DOMActivate"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMAttrModified","id":"event-DOMAttrModified"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMCharacterDataModified","id":"event-DOMCharacterDataModified"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMFocusIn","id":"event-DOMFocusIn"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMFocusOut","id":"event-DOMFocusOut"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMNodeInserted","id":"event-DOMNodeInserted"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMNodeInsertedIntoDocument","id":"event-DOMNodeInsertedIntoDocument"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMNodeRemoved","id":"event-DOMNodeRemoved"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMNodeRemovedFromDocument","id":"event-DOMNodeRemovedFromDocument"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"DOMSubtreeModified","id":"event-DOMSubtreeModified"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"abort","id":"event-abort"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"blur","id":"event-blur"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"change","id":"event-change"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"click","id":"event-click"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"contextmenu","id":"event-contextmenu"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"dblclick","id":"event-dblclick"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"error","id":"event-error"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"focus","id":"event-focus"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"keydown","id":"event-keydown"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"keypress","id":"event-keypress"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"keyup","id":"event-keyup"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"load","id":"event-load"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"mousedown","id":"event-mousedown"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"mouseenter","id":"event-mouseenter"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"mouseleave","id":"event-mouseleave"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"mousemove","id":"event-mousemove"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"mouseout","id":"event-mouseout"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"mouseover","id":"event-mouseover"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"mouseup","id":"event-mouseup"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"reset","id":"event-reset"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"resize","id":"event-resize"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"scroll","id":"event-scroll"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"select","id":"event-select"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"submit","id":"event-submit"},{"meta":{},"owner":"Ext.dom.Element","tagname":"event","name":"unload","id":"event-unload"}],"property":[{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"$className","id":"property-S-className"},{"meta":{},"owner":"Ext.dom.Element","tagname":"property","name":"autoBoxAdjust","id":"property-autoBoxAdjust"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"configMap","id":"property-configMap"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"defaultUnit","id":"property-defaultUnit"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"dom","id":"property-dom"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"id","id":"property-id"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigList","id":"property-initConfigList"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"initConfigMap","id":"property-initConfigMap"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"property","name":"isInstance","id":"property-isInstance"},{"meta":{},"owner":"Ext.dom.Element","tagname":"property","name":"originalDisplay","id":"property-originalDisplay"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"property","name":"self","id":"property-self"},{"meta":{"private":true},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"styleHooks","id":"property-styleHooks"}],"css_var":[],"method":[{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"constructor","id":"method-constructor"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"addCls","id":"method-addCls"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"addClsOnClick","id":"method-addClsOnClick"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"addClsOnFocus","id":"method-addClsOnFocus"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"addClsOnOver","id":"method-addClsOnOver"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"addKeyListener","id":"method-addKeyListener"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"addKeyMap","id":"method-addKeyMap"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"addListener","id":"method-addListener"},{"meta":{"private":true},"owner":"Ext.dom.Element","tagname":"method","name":"adjustDirect2DDimension","id":"method-adjustDirect2DDimension"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"alignTo","id":"method-alignTo"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"anchorTo","id":"method-anchorTo"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"animate","id":"method-animate"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"appendChild","id":"method-appendChild"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"appendTo","id":"method-appendTo"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"applyStyles","id":"method-applyStyles"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"blur","id":"method-blur"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"boxWrap","id":"method-boxWrap"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"cacheScrollValues","id":"method-cacheScrollValues"},{"meta":{"deprecated":{"text":"as of 4.1. Use {@link #callParent} instead."},"protected":true},"owner":"Ext.Base","tagname":"method","name":"callOverridden","id":"method-callOverridden"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"callParent","id":"method-callParent"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"center","id":"method-center"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"child","id":"method-child"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"clean","id":"method-clean"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"clearListeners","id":"method-clearListeners"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"clearOpacity","id":"method-clearOpacity"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"clearPositioning","id":"method-clearPositioning"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"clip","id":"method-clip"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"configClass","id":"method-configClass"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"contains","id":"method-contains"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"createChild","id":"method-createChild"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"createProxy","id":"method-createProxy"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"createShim","id":"method-createShim"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"destroy","id":"method-destroy"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"down","id":"method-down"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"enableDisplayMode","id":"method-enableDisplayMode"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"fadeIn","id":"method-fadeIn"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"fadeOut","id":"method-fadeOut"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"findParent","id":"method-findParent"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"findParentNode","id":"method-findParentNode"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"first","id":"method-first"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"focus","id":"method-focus"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"focusable","id":"method-focusable"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"frame","id":"method-frame"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getActiveElement","id":"method-getActiveElement"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getAlignToXY","id":"method-getAlignToXY"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getAnchorXY","id":"method-getAnchorXY"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getAttribute","id":"method-getAttribute"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getAttributeNS","id":"method-getAttributeNS"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getBorderWidth","id":"method-getBorderWidth"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getBottom","id":"method-getBottom"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getBox","id":"method-getBox"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getById","id":"method-getById"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getCenterXY","id":"method-getCenterXY"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getColor","id":"method-getColor"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getComputedHeight","id":"method-getComputedHeight"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getComputedWidth","id":"method-getComputedWidth"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"getConfig","id":"method-getConfig"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getConstrainVector","id":"method-getConstrainVector"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getFrameWidth","id":"method-getFrameWidth"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getHTML","id":"method-getHTML"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getHeight","id":"method-getHeight"},{"meta":{},"owner":"Ext.Base","tagname":"method","name":"getInitialConfig","id":"method-getInitialConfig"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getLeft","id":"method-getLeft"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getLoader","id":"method-getLoader"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getLocalX","id":"method-getLocalX"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getLocalY","id":"method-getLocalY"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getMargin","id":"method-getMargin"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getOffsetsTo","id":"method-getOffsetsTo"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getPadding","id":"method-getPadding"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getPageBox","id":"method-getPageBox"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getPositioning","id":"method-getPositioning"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getRegion","id":"method-getRegion"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getRight","id":"method-getRight"},{"meta":{"private":true},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getRightMarginFixCleaner","id":"method-getRightMarginFixCleaner"},{"meta":{"protected":true},"owner":"Ext.dom.Element","tagname":"method","name":"getScopeParent","id":"method-getScopeParent"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getScroll","id":"method-getScroll"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getSize","id":"method-getSize"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getStyle","id":"method-getStyle"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getStyleSize","id":"method-getStyleSize"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getTextWidth","id":"method-getTextWidth"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getTop","id":"method-getTop"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getValue","id":"method-getValue"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getViewRegion","id":"method-getViewRegion"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getViewSize","id":"method-getViewSize"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getWidth","id":"method-getWidth"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getX","id":"method-getX"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"getXY","id":"method-getXY"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"getY","id":"method-getY"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"ghost","id":"method-ghost"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"hasCls","id":"method-hasCls"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"hasConfig","id":"method-hasConfig"},{"meta":{"private":true},"owner":"Ext.dom.Element","tagname":"method","name":"hasMetrics","id":"method-hasMetrics"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"hide","id":"method-hide"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"highlight","id":"method-highlight"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"hover","id":"method-hover"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"initConfig","id":"method-initConfig"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"initDD","id":"method-initDD"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"initDDProxy","id":"method-initDDProxy"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"initDDTarget","id":"method-initDDTarget"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"insertAfter","id":"method-insertAfter"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"insertBefore","id":"method-insertBefore"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"insertFirst","id":"method-insertFirst"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"insertHtml","id":"method-insertHtml"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"insertSibling","id":"method-insertSibling"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"is","id":"method-is"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"isBorderBox","id":"method-isBorderBox"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"isDisplayed","id":"method-isDisplayed"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"isMasked","id":"method-isMasked"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"isScrollable","id":"method-isScrollable"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"isStyle","id":"method-isStyle"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"isTransparent","id":"method-isTransparent"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"isVisible","id":"method-isVisible"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"last","id":"method-last"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"load","id":"method-load"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"mask","id":"method-mask"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"monitorMouseLeave","id":"method-monitorMouseLeave"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"move","id":"method-move"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"moveTo","id":"method-moveTo"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"needsTabIndex","id":"method-needsTabIndex"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"next","id":"method-next"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"on","id":"method-on"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"onConfigUpdate","id":"method-onConfigUpdate"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"parent","id":"method-parent"},{"meta":{"deprecated":{"text":"Use the `delay` config to {@link #animate} instead.","version":"4.0"}},"owner":"Ext.dom.Element","tagname":"method","name":"pause","id":"method-pause"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"populateStyleMap","id":"method-populateStyleMap"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"position","id":"method-position"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"prev","id":"method-prev"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"puff","id":"method-puff"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"purgeAllListeners","id":"method-purgeAllListeners"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"query","id":"method-query"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"radioCls","id":"method-radioCls"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"relayEvent","id":"method-relayEvent"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"remove","id":"method-remove"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"removeAllListeners","id":"method-removeAllListeners"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"removeAnchor","id":"method-removeAnchor"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"removeCls","id":"method-removeCls"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"removeListener","id":"method-removeListener"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"repaint","id":"method-repaint"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"replace","id":"method-replace"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"replaceCls","id":"method-replaceCls"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"replaceWith","id":"method-replaceWith"},{"meta":{"deprecated":{"text":"Just use {@link #animate} instead.","version":"4.0"}},"owner":"Ext.dom.Element","tagname":"method","name":"scale","id":"method-scale"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"scroll","id":"method-scroll"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"scrollBy","id":"method-scrollBy"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"scrollIntoView","id":"method-scrollIntoView"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"scrollTo","id":"method-scrollTo"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"select","id":"method-select"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"selectable","id":"method-selectable"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"serializeForm","id":"method-serializeForm"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"set","id":"method-set"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setBottom","id":"method-setBottom"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setBounds","id":"method-setBounds"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setBox","id":"method-setBox"},{"meta":{"private":true},"owner":"Ext.Base","tagname":"method","name":"setConfig","id":"method-setConfig"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setDisplayed","id":"method-setDisplayed"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setHTML","id":"method-setHTML"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setHeight","id":"method-setHeight"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setLeft","id":"method-setLeft"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setLeftTop","id":"method-setLeftTop"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setLocation","id":"method-setLocation"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setOpacity","id":"method-setOpacity"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setPositioning","id":"method-setPositioning"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setRegion","id":"method-setRegion"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setRight","id":"method-setRight"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setSize","id":"method-setSize"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setStyle","id":"method-setStyle"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setTop","id":"method-setTop"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setVisibilityMode","id":"method-setVisibilityMode"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setVisible","id":"method-setVisible"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setWidth","id":"method-setWidth"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setX","id":"method-setX"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"setXY","id":"method-setXY"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"setY","id":"method-setY"},{"meta":{"deprecated":{"text":"Just use {@link #animate} instead.","version":"4.0"}},"owner":"Ext.dom.Element","tagname":"method","name":"shift","id":"method-shift"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"show","id":"method-show"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"slideIn","id":"method-slideIn"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"slideOut","id":"method-slideOut"},{"meta":{"protected":true},"owner":"Ext.Base","tagname":"method","name":"statics","id":"method-statics"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"swallowEvent","id":"method-swallowEvent"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"switchOff","id":"method-switchOff"},{"meta":{"private":true},"owner":"Ext.dom.Element","tagname":"method","name":"syncContent","id":"method-syncContent"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"toggle","id":"method-toggle"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"toggleCls","id":"method-toggleCls"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"translatePoints","id":"method-translatePoints"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"un","id":"method-un"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"unclip","id":"method-unclip"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"unmask","id":"method-unmask"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"unselectable","id":"method-unselectable"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"up","id":"method-up"},{"meta":{},"owner":"Ext.dom.Element","tagname":"method","name":"update","id":"method-update"},{"meta":{},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"wrap","id":"method-wrap"}],"css_mixin":[],"cfg":[]},"private":null,"tagname":"class","extends":"Ext.dom.AbstractElement","html":"

Alternate names

Ext.Element
Ext.core.Element

Hierarchy

Subclasses

Files

Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.

\n\n

All instances of this class inherit the methods of Ext.fx.Anim making visual effects easily available to all\nDOM elements.

\n\n

Note that the events documented in this class are not Ext events, they encapsulate browser events. Some older browsers\nmay not support the full range of events. Which events are supported is beyond the control of Ext JS.

\n\n

Usage:

\n\n
// by id\nvar el = Ext.get(\"my-div\");\n\n// by DOM element reference\nvar el = Ext.get(myDivElement);\n
\n\n

Animations

\n\n

When an element is manipulated, by default there is no animation.

\n\n
var el = Ext.get(\"my-div\");\n\n// no animation\nel.setWidth(100);\n
\n\n

Many of the functions for manipulating an element have an optional \"animate\" parameter. This parameter can be\nspecified as boolean (true) for default animation effects.

\n\n
// default animation\nel.setWidth(100, true);\n
\n\n

To configure the effects, an object literal with animation options to use as the Element animation configuration\nobject can also be specified. Note that the supported Element animation configuration options are a subset of the\nExt.fx.Anim animation options specific to Fx effects. The supported Element animation configuration options\nare:

\n\n
Option    Default   Description\n--------- --------  ---------------------------------------------\nduration  350       The duration of the animation in milliseconds\neasing    easeOut   The easing method\ncallback  none      A function to execute when the anim completes\nscope     this      The scope (this) of the callback function\n
\n\n

Usage:

\n\n
// Element animation options object\nvar opt = {\n    duration: 1000,\n    easing: 'elasticIn',\n    callback: this.foo,\n    scope: this\n};\n// animation with some options set\nel.setWidth(100, opt);\n
\n\n

The Element animation object being used for the animation will be set on the options object as \"anim\", which allows\nyou to stop or manipulate the animation. Here is an example:

\n\n
// using the \"anim\" property to get the Anim object\nif(opt.anim.isAnimated()){\n    opt.anim.stop();\n}\n
\n\n

Composite (Collections of) Elements

\n\n

For working with collections of Elements, see Ext.CompositeElement

\n

Properties

Defined By

Instance Properties

...
\n

Defaults to: "Ext.Base"

True to automatically adjust width and height settings for box-model issues. ...

True to automatically adjust width and height settings for box-model issues.

\n

Defaults to: true

...
\n

Defaults to: {}

The default unit to append to CSS values where a unit isn't provided. ...

The default unit to append to CSS values where a unit isn't provided.

\n

Defaults to: "px"

The DOM element

\n

The DOM element

\n

The DOM element ID

\n

The DOM element ID

\n
...
\n

Defaults to: []

...
\n

Defaults to: {}

...
\n

Defaults to: true

The element's default display mode. ...

The element's default display mode.

\n

Defaults to: ""

Get the reference to the current class from which this object was instantiated. ...

Get the reference to the current class from which this object was instantiated. Unlike statics,\nthis.self is scope-dependent and it's meant to be used for dynamic inheritance. See statics\nfor a detailed comparison

\n\n
Ext.define('My.Cat', {\n    statics: {\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        alert(this.self.speciesName); // dependent on 'this'\n    },\n\n    clone: function() {\n        return new this.self();\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n    statics: {\n        speciesName: 'Snow Leopard'         // My.SnowLeopard.speciesName = 'Snow Leopard'\n    }\n});\n\nvar cat = new My.Cat();                     // alerts 'Cat'\nvar snowLeopard = new My.SnowLeopard();     // alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));             // alerts 'My.SnowLeopard'\n
\n
This shared object is keyed by style name (e.g., 'margin-left' or 'marginLeft'). ...

This shared object is keyed by style name (e.g., 'margin-left' or 'marginLeft'). The\nvalues are objects with the following properties:

\n\n
    \n
  • name (String) : The actual name to be presented to the DOM. This is typically the value\n returned by normalize.
  • \n
  • get (Function) : A hook function that will perform the get on this style. These\n functions receive \"(dom, el)\" arguments. The dom parameter is the DOM Element\n from which to get ths tyle. The el argument (may be null) is the Ext.Element.
  • \n
  • set (Function) : A hook function that will perform the set on this style. These\n functions receive \"(dom, value, el)\" arguments. The dom parameter is the DOM Element\n from which to get ths tyle. The value parameter is the new value for the style. The\n el argument (may be null) is the Ext.Element.
  • \n
\n\n\n

The this pointer is the object that contains get or set, which means that\nthis.name can be accessed if needed. The hook functions are both optional.

\n

Defaults to: {}

Defined By

Static Properties

...
\n

Defaults to: []

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode. ...

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nAdd or remove the Ext.Layer.visibilityCls class to hide the element.

\n

Defaults to: 4

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode. ...

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse the CSS 'display' property to hide the element.

\n

Defaults to: 2

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode. ...

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse CSS absolute positioning and top/left offsets to hide the element.

\n

Defaults to: 3

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode. ...

Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse the CSS 'visibility' property to hide the element.

\n\n

Note that in this mode, isVisible may return true\nfor an element even though it actually has a parent element that is hidden. For this\nreason, and in most cases, using the OFFSETS mode is a better choice.

\n

Defaults to: 1

Methods

Defined By

Instance Methods

Ext.dom.Element
view source
new( String/HTMLElement element, [Boolean forceNew] ) : Object
Creates new Element directly. ...

Creates new Element directly.

\n

Parameters

  • element : String/HTMLElement
    \n
  • forceNew : Boolean (optional)

    By default the constructor checks to see if there is already an instance of this\nelement in the cache and if there is it returns the same instance. This will skip that check (useful for extending\nthis class).

    \n

Returns

Adds one or more CSS classes to the element. ...

Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.

\n

Parameters

  • className : String/String[]

    The CSS classes to add separated by space, or an array of classes

    \n

Returns

Ext.dom.Element
view source
( String className, [Function testFn], [Object scope] ) : Ext.dom.Element
Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect) ...

Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)

\n

Parameters

  • className : String

    The class to add

    \n
  • testFn : Function (optional)

    A test function to execute before adding the class. The passed parameter\nwill be the Element instance. If this functions returns false, the class will not be added.

    \n
  • scope : Object (optional)

    The scope to execute the testFn in.

    \n

Returns

Ext.dom.Element
view source
( String className, [Function testFn], [Object scope] ) : Ext.dom.Element
Sets up event handlers to add and remove a css class when this element has the focus ...

Sets up event handlers to add and remove a css class when this element has the focus

\n

Parameters

  • className : String

    The class to add

    \n
  • testFn : Function (optional)

    A test function to execute before adding the class. The passed parameter\nwill be the Element instance. If this functions returns false, the class will not be added.

    \n
  • scope : Object (optional)

    The scope to execute the testFn in.

    \n

Returns

Ext.dom.Element
view source
( String className, [Function testFn], [Object scope] ) : Ext.dom.Element
Sets up event handlers to add and remove a css class when the mouse is over this element ...

Sets up event handlers to add and remove a css class when the mouse is over this element

\n

Parameters

  • className : String

    The class to add

    \n
  • testFn : Function (optional)

    A test function to execute before adding the class. The passed parameter\nwill be the Element instance. If this functions returns false, the class will not be added.

    \n
  • scope : Object (optional)

    The scope to execute the testFn in.

    \n

Returns

Convenience method for constructing a KeyMap ...

Convenience method for constructing a KeyMap

\n

Parameters

  • key : String/Number/Number[]/Object

    Either a string with the keys to listen for, the numeric key code,\narray of key codes or an object with the following options:

    \n
  • fn : Function

    The function to call

    \n
  • scope : Object (optional)

    The scope (this reference) in which the specified function is executed. Defaults to this Element.

    \n

Returns

Ext.dom.Element
view source
( Object config ) : Ext.util.KeyMap
Creates a KeyMap for this element ...

Creates a KeyMap for this element

\n

Parameters

Returns

Ext.dom.Element
view source
( String eventName, Function fn, [Object scope], [Object options] ) : Ext.dom.Element
Shorthand for on. ...

Shorthand for on.

\n\n

Appends an event handler to this element.

\n

Parameters

  • eventName : String

    The name of event to handle.

    \n\n
  • fn : Function

    The handler function the event invokes. This function is passed the following parameters:

    \n\n\n\n\n
      \n
    • evt : EventObject

      \n\n

      The EventObject describing the event.

    • \n
    • el : HtmlElement

      \n\n

      The DOM element which was the target of the event. Note that this may be filtered by using the delegate option.

    • \n
    • o : Object

      \n\n

      The options object from the call that setup the listener.

    • \n
    \n\n\n\n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.

    \n\n
  • options : Object (optional)

    An object containing handler configuration properties. This may contain any of\nthe following properties:

    \n\n\n\n\n
      \n
    • scope Object :

      \n\n

      The scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.

    • \n
    • delegate String:

      \n\n

      A simple selector to filter the target or look for a descendant of the target. See below for additional details.

    • \n
    • stopEvent Boolean:

      \n\n

      True to stop the event. That is stop propagation, and prevent the default action.

    • \n
    • preventDefault Boolean:

      \n\n

      True to prevent the default action

    • \n
    • stopPropagation Boolean:

      \n\n

      True to prevent event propagation

    • \n
    • normalized Boolean:

      \n\n

      False to pass a browser event to the handler function instead of an Ext.EventObject

    • \n
    • target Ext.dom.Element:

      \n\n

      Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.

    • \n
    • delay Number:

      \n\n

      The number of milliseconds to delay the invocation of the handler after the event fires.

    • \n
    • single Boolean:

      \n\n

      True to add a handler to handle just the next firing of the event, and then remove itself.

    • \n
    • buffer Number:

      \n\n

      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is not invoked, but the new\nhandler is scheduled in its place.

    • \n
    \n\n\n\n\n

    Combining Options

    \n\n\n\n\n

    Using the options argument, it is possible to combine different types of listeners:

    \n\n\n\n\n

    A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options\nobject. The options object is available as the third parameter in the handler function.

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on('click', this.onClick, this, {\n    single: true,\n    delay: 100,\n    stopEvent : true,\n    forumId: 4\n});\n
    \n\n\n\n\n

    Attaching multiple handlers in 1 call

    \n\n\n\n\n

    The method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple handlers.

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on({\n    'click' : {\n        fn: this.onClick,\n        scope: this,\n        delay: 100\n    },\n    'mouseover' : {\n        fn: this.onMouseOver,\n        scope: this\n    },\n    'mouseout' : {\n        fn: this.onMouseOut,\n        scope: this\n    }\n});\n
    \n\n\n\n\n

    Or a shorthand syntax:

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on({\n    'click' : this.onClick,\n    'mouseover' : this.onMouseOver,\n    'mouseout' : this.onMouseOut,\n    scope: this\n});\n
    \n\n\n\n\n

    delegate

    \n\n\n\n\n

    This is a configuration option that you can pass along when registering a handler for an event to assist with\nevent delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure\nto memory-leaks. By registering an event for a container element as opposed to each element within a container.\nBy setting this configuration option to a simple selector, the target element will be filtered to look for a\ndescendant of the target. For example:

    \n\n\n\n\n
    // using this markup:\n<div id='elId'>\n    <p id='p1'>paragraph one</p>\n    <p id='p2' class='clickable'>paragraph two</p>\n    <p id='p3'>paragraph three</p>\n</div>\n\n// utilize event delegation to registering just one handler on the container element:\nel = Ext.get('elId');\nel.on(\n    'click',\n    function(e,t) {\n        // handle click\n        console.info(t.id); // 'p2'\n    },\n    this,\n    {\n        // filter the target element to be a descendant with the class 'clickable'\n        delegate: '.clickable'\n    }\n);\n
    \n\n

Returns

Ext.dom.Element
view source
( Object dimension ) : Numberprivate
Returns 1 if the browser returns the subpixel dimension rounded to the lowest pixel. ...

Returns 1 if the browser returns the subpixel dimension rounded to the lowest pixel.

\n

Parameters

Returns

Ext.dom.Element
view source
( String/HTMLElement/Ext.Element element, [String position], [Number[] offsets], [Boolean/Object animate] ) : Ext.Element
Aligns this element with another element relative to the specified anchor points. ...

Aligns this element with another element relative to the specified anchor points. If the other element is the\ndocument it aligns it to the viewport. The position parameter is optional, and can be specified in any one of\nthe following formats:

\n\n
    \n
  • Blank: Defaults to aligning the element's top-left corner to the target's bottom-left corner (\"tl-bl\").
  • \n
  • One anchor (deprecated): The passed anchor position is used as the target element's anchor point.\nThe element being aligned will position its top-left corner (tl) to that point. This method has been\ndeprecated in favor of the newer two anchor syntax below.
  • \n
  • Two anchors: If two values from the table below are passed separated by a dash, the first value is used as the\nelement's anchor point, and the second value is used as the target's anchor point.
  • \n
\n\n\n

In addition to the anchor points, the position parameter also supports the \"?\" character. If \"?\" is passed at the end of\nthe position string, the element will attempt to align as specified, but the position will be adjusted to constrain to\nthe viewport if necessary. Note that the element being aligned might be swapped to align to a different position than\nthat specified in order to enforce the viewport constraints.\nFollowing are all of the supported anchor positions:

\n\n
Value  Description\n-----  -----------------------------\ntl     The top left corner (default)\nt      The center of the top edge\ntr     The top right corner\nl      The center of the left edge\nc      In the center of the element\nr      The center of the right edge\nbl     The bottom left corner\nb      The center of the bottom edge\nbr     The bottom right corner\n
\n\n\n

Example Usage:

\n\n
// align el to other-el using the default positioning (\"tl-bl\", non-constrained)\nel.alignTo(\"other-el\");\n\n// align the top left corner of el with the top right corner of other-el (constrained to viewport)\nel.alignTo(\"other-el\", \"tr?\");\n\n// align the bottom right corner of el with the center left edge of other-el\nel.alignTo(\"other-el\", \"br-l?\");\n\n// align the center of el with the bottom left corner of other-el and\n// adjust the x position by -6 pixels (and the y position by 0)\nel.alignTo(\"other-el\", \"c-bl\", [-6, 0]);\n
\n

Parameters

  • element : String/HTMLElement/Ext.Element

    The element to align to.

    \n
  • position : String (optional)

    The position to align to

    \n

    Defaults to: "tl-bl?"

  • offsets : Number[] (optional)

    Offset the positioning by [x, y]

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Ext.dom.Element
view source
( String/HTMLElement/Ext.Element element, String position, [Number[] offsets], [Boolean/Object animate], [Boolean/Number monitorScroll], [Function callback] ) : Ext.Element
Anchors an element to another element and realigns it when the window is resized. ...

Anchors an element to another element and realigns it when the window is resized.

\n

Parameters

  • element : String/HTMLElement/Ext.Element

    The element to align to.

    \n
  • position : String

    The position to align to.

    \n
  • offsets : Number[] (optional)

    Offset the positioning by [x, y]

    \n
  • animate : Boolean/Object (optional)

    True for the default animation or a standard Element animation config object

    \n
  • monitorScroll : Boolean/Number (optional)

    True to monitor body scroll and reposition. If this parameter\nis a number, it is used as the buffer delay (defaults to 50ms).

    \n
  • callback : Function (optional)

    The function to call after the animation finishes

    \n

Returns

Ext.dom.Element
view source
( Object config ) : Ext.dom.Element
Performs custom animation on this Element. ...

Performs custom animation on this Element.

\n\n

The following properties may be specified in from, to, and keyframe objects:

\n\n
    \n
  • x - The page X position in pixels.

  • \n
  • y - The page Y position in pixels

  • \n
  • left - The element's CSS left value. Units must be supplied.

  • \n
  • top - The element's CSS top value. Units must be supplied.

  • \n
  • width - The element's CSS width value. Units must be supplied.

  • \n
  • height - The element's CSS height value. Units must be supplied.

  • \n
  • scrollLeft - The element's scrollLeft value.

  • \n
  • scrollTop - The element's scrollTop value.

  • \n
  • opacity - The element's opacity value. This must be a value between 0 and 1.

  • \n
\n\n\n

Be aware that animating an Element which is being used by an Ext Component without in some way informing the\nComponent about the changed element state will result in incorrect Component behaviour. This is because the\nComponent will be using the old state of the element. To avoid this problem, it is now possible to directly\nanimate certain properties of Components.

\n

Parameters

Returns

Appends the passed element(s) to this element ...

Appends the passed element(s) to this element

\n

Parameters

Returns

Appends this element to the passed element ...

Appends this element to the passed element

\n

Parameters

Returns

More flexible version of setStyle for setting style properties. ...

More flexible version of setStyle for setting style properties.

\n

Parameters

  • styles : String/Object/Function

    A style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.

    \n

Returns

Ext.dom.Element
view source
( ) : Ext.dom.Element
Tries to blur the element. ...

Tries to blur the element. Any exceptions are caught and ignored.

\n

Returns

Ext.dom.Element
view source
( [String class] ) : Ext.dom.Element
Wraps the specified element with a special 9 element markup/CSS block that renders by default as\na gray container wit...

Wraps the specified element with a special 9 element markup/CSS block that renders by default as\na gray container with a gradient background, rounded corners and a 4-way shadow.

\n\n

This special markup is used throughout Ext when box wrapping elements (Ext.button.Button,\nExt.panel.Panel when frame=true, Ext.window.Window).\nThe markup is of this form:

\n\n
Ext.dom.Element.boxMarkup =\n'<div class=\"{0}-tl\"><div class=\"{0}-tr\"><div class=\"{0}-tc\"></div></div></div>\n<div class=\"{0}-ml\"><div class=\"{0}-mr\"><div class=\"{0}-mc\"></div></div></div>\n<div class=\"{0}-bl\"><div class=\"{0}-br\"><div class=\"{0}-bc\"></div></div></div>';\n
\n\n

Example usage:

\n\n
// Basic box wrap\nExt.get(\"foo\").boxWrap();\n\n// You can also add a custom class and use CSS inheritance rules to customize the box look.\n// 'x-box-blue' is a built-in alternative -- look at the related CSS definitions as an example\n// for how to create a custom box wrap style.\nExt.get(\"foo\").boxWrap().addCls(\"x-box-blue\");\n
\n

Parameters

  • class : String (optional)

    A base CSS class to apply to the containing wrapper element.\nNote that there are a number of CSS rules that are dependent on this name to make the overall effect work,\nso if you supply an alternate base class, make sure you also supply all of the necessary rules.

    \n

    Defaults to: "x-box"

Returns

  • Ext.dom.Element

    The outermost wrapping element of the created box structure.

    \n
When an element is moved around in the DOM, or is hidden using display:none, it loses layout, and therefore\nall scrol...

When an element is moved around in the DOM, or is hidden using display:none, it loses layout, and therefore\nall scroll positions of all descendant elements are lost.

\n\n

This function caches them, and returns a function, which when run will restore the cached positions.\nIn the following example, the Panel is moved from one Container to another which will cause it to lose all scroll positions:

\n\n
var restoreScroll = myPanel.el.cacheScrollValues();\nmyOtherContainer.add(myPanel);\nrestoreScroll();\n
\n

Returns

  • Function

    A function which will restore all descentant elements of this Element to their scroll\npositions recorded when this function was executed. Be aware that the returned function is a closure which has\ncaptured the scope of cacheScrollValues, so take care to derefence it as soon as not needed - if is it is a var\nit will drop out of scope, and the reference will be freed.

    \n
( Array/Arguments args ) : Objectdeprecatedprotected
Call the original method that was previously overridden with override\n\nExt.define('My.Cat', {\n constructor: functi...

Call the original method that was previously overridden with override

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callOverridden();\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n
\n

This method has been deprecated

\n

as of 4.1. Use callParent instead.

\n\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callOverridden(arguments)

    \n

Returns

  • Object

    Returns the result of calling the overridden method

    \n
( Array/Arguments args ) : Objectprotected
Call the \"parent\" method of the current method. ...

Call the \"parent\" method of the current method. That is the method previously\noverridden by derivation or by an override (see Ext.define).

\n\n
 Ext.define('My.Base', {\n     constructor: function (x) {\n         this.x = x;\n     },\n\n     statics: {\n         method: function (x) {\n             return x;\n         }\n     }\n });\n\n Ext.define('My.Derived', {\n     extend: 'My.Base',\n\n     constructor: function () {\n         this.callParent([21]);\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // alerts 21\n
\n\n

This can be used with an override as follows:

\n\n
 Ext.define('My.DerivedOverride', {\n     override: 'My.Derived',\n\n     constructor: function (x) {\n         this.callParent([x*2]); // calls original My.Derived constructor\n     }\n });\n\n var obj = new My.Derived();\n\n alert(obj.x);  // now alerts 42\n
\n\n

This also works with static methods.

\n\n
 Ext.define('My.Derived2', {\n     extend: 'My.Base',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Base.method\n         }\n     }\n });\n\n alert(My.Base.method(10);     // alerts 10\n alert(My.Derived2.method(10); // alerts 20\n
\n\n

Lastly, it also works with overridden static methods.

\n\n
 Ext.define('My.Derived2Override', {\n     override: 'My.Derived2',\n\n     statics: {\n         method: function (x) {\n             return this.callParent([x*2]); // calls My.Derived2.method\n         }\n     }\n });\n\n alert(My.Derived2.method(10); // now alerts 40\n
\n

Parameters

  • args : Array/Arguments

    The arguments, either an array or the arguments object\nfrom the current method, for example: this.callParent(arguments)

    \n

Returns

  • Object

    Returns the result of calling the parent method

    \n
Ext.dom.Element
view source
( [String/HTMLElement/Ext.Element centerIn] )
Centers the Element in either the viewport, or another Element. ...

Centers the Element in either the viewport, or another Element.

\n

Parameters

  • centerIn : String/HTMLElement/Ext.Element (optional)

    The element in which to center the element.

    \n
Selects a single direct child based on the passed CSS selector (the selector should not contain an id). ...

Selects a single direct child based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

  • selector : String

    The CSS selector

    \n
  • returnDom : Boolean (optional)

    True to return the DOM node instead of Ext.dom.Element.

    \n

    Defaults to: false

Returns

Ext.dom.Element
view source
( [Boolean forceReclean] )
Removes Empty, or whitespace filled text nodes. ...

Removes Empty, or whitespace filled text nodes. Combines adjacent text nodes.

\n

Parameters

  • forceReclean : Boolean (optional)

    By default the element keeps track if it has been cleaned already\nso you can call this over and over. However, if you update the element and need to force a reclean, you\ncan pass true.

    \n

    Defaults to: false

Alias for removeAllListeners. ...

Alias for removeAllListeners.

\n\n

Removes all previous added listeners from this element

\n

Returns

Clears any opacity settings from this element. ...

Clears any opacity settings from this element. Required in some cases for IE.

\n

Returns

Clears positioning back to the default when the document was loaded. ...

Clears positioning back to the default when the document was loaded.

\n

Parameters

  • value : String (optional)

    The value to use for the left, right, top, bottom. You could use 'auto'.

    \n

    Defaults to: ""

Returns

Ext.dom.Element
view source
( ) : Ext.dom.Element
Store the current overflow setting and clip overflow on the element - use unclip to remove ...

Store the current overflow setting and clip overflow on the element - use unclip to remove

\n

Returns

Returns true if this element is an ancestor of the passed element ...

Returns true if this element is an ancestor of the passed element

\n

Parameters

  • el : HTMLElement/String

    The element to check

    \n

Returns

  • Boolean

    True if this element is an ancestor of el, else false

    \n
( Object config, [HTMLElement insertBefore], [Boolean returnDom] ) : Ext.dom.AbstractElement
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e...

Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.

\n

Parameters

  • config : Object

    DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be\nautomatically generated with the specified attributes.

    \n
  • insertBefore : HTMLElement (optional)

    a child element of this element

    \n
  • returnDom : Boolean (optional)

    true to return the dom node instead of creating an Element

    \n

    Defaults to: false

Returns

Ext.dom.Element
view source
( String/Object config, [String/HTMLElement renderTo], [Boolean matchBox] ) : Ext.dom.Element
Creates a proxy element of this element ...

Creates a proxy element of this element

\n

Parameters

  • config : String/Object

    The class name of the proxy element or a DomHelper config object

    \n
  • renderTo : String/HTMLElement (optional)

    The element or element id to render the proxy to. Defaults to: document.body.

    \n
  • matchBox : Boolean (optional)

    True to align and size the proxy to this element now.

    \n

    Defaults to: false

Returns

Creates an iframe shim for this element to keep selects and other windowed objects from\nshowing through. ...

Creates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.

\n

Returns

Alias to remove. ...

Alias to remove.

\n\n

Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode

\n

Overrides: Ext.Base.destroy

Selects a single child at any depth below this element based on the passed CSS selector (the selector should not cont...

Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

Returns

Convenience method for setVisibilityMode(Element.DISPLAY) ...

Convenience method for setVisibilityMode(Element.DISPLAY)

\n

Parameters

  • display : String (optional)

    What to set display to when visible

    \n

Returns

Ext.dom.Element
view source
( [Object options] ) : Ext.Element
Fade an element in (from transparent to opaque). ...

Fade an element in (from transparent to opaque). The ending opacity can be specified using the opacity\nconfig option. Usage:

\n\n
// default: fade in from opacity 0 to 100%\nel.fadeIn();\n\n// custom: fade in from opacity 0 to 75% over 2 seconds\nel.fadeIn({ opacity: .75, duration: 2000});\n\n// common config options shown with default values\nel.fadeIn({\n    opacity: 1, //can be any value between 0 and 1 (e.g. .5)\n    easing: 'easeOut',\n    duration: 500\n});\n
\n

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Ext.dom.Element
view source
( [Object options] ) : Ext.Element
Fade an element out (from opaque to transparent). ...

Fade an element out (from opaque to transparent). The ending opacity can be specified using the opacity\nconfig option. Note that IE may require useDisplay:true in order to redisplay correctly.\nUsage:

\n\n
// default: fade out from the element's current opacity to 0\nel.fadeOut();\n\n// custom: fade out from the element's current opacity to 25% over 2 seconds\nel.fadeOut({ opacity: .25, duration: 2000});\n\n// common config options shown with default values\nel.fadeOut({\n    opacity: 0, //can be any value between 0 and 1 (e.g. .5)\n    easing: 'easeOut',\n    duration: 500,\n    remove: false,\n    useDisplay: false\n});\n
\n

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

( String selector, [Number/String/HTMLElement/Ext.Element limit], [Boolean returnEl] ) : HTMLElement
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. ...

Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)

\n

Parameters

  • selector : String

    The simple selector to test

    \n
  • limit : Number/String/HTMLElement/Ext.Element (optional)

    The max depth to search as a number or an element which causes the upward traversal to stop\nand is not considered for inclusion as the result. (defaults to 50 || document.documentElement)

    \n
  • returnEl : Boolean (optional)

    True to return a Ext.Element object instead of DOM node

    \n

    Defaults to: false

Returns

  • HTMLElement

    The matching DOM node (or null if no match was found)

    \n
( String selector, [Number/String/HTMLElement/Ext.Element limit], [Boolean returnEl] ) : HTMLElement
Looks at parent nodes for a match of the passed simple selector (e.g. ...

Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)

\n

Parameters

  • selector : String

    The simple selector to test

    \n
  • limit : Number/String/HTMLElement/Ext.Element (optional)

    The max depth to search as a number or an element which causes the upward traversal to stop\nand is not considered for inclusion as the result. (defaults to 50 || document.documentElement)

    \n
  • returnEl : Boolean (optional)

    True to return a Ext.Element object instead of DOM node

    \n

    Defaults to: false

Returns

  • HTMLElement

    The matching DOM node (or null if no match was found)

    \n
Gets the first child, skipping text nodes ...

Gets the first child, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the next sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.dom.Element

    \n

    Defaults to: false

Returns

Ext.dom.Element
view source
( [Number defer] ) : Ext.dom.Element
Tries to focus the element. ...

Tries to focus the element. Any exceptions are caught and ignored.

\n

Parameters

  • defer : Number (optional)

    Milliseconds to defer the focus

    \n

Returns

Ext.dom.Element
view source
( ) : Boolean
Checks whether this element can be focused. ...

Checks whether this element can be focused.

\n

Returns

  • Boolean

    True if the element is focusable

    \n
Ext.dom.Element
view source
( [String color], [Number count], [Object options] ) : Ext.dom.Element
Shows a ripple of exploding, attenuating borders to draw attention to an Element. ...

Shows a ripple of exploding, attenuating borders to draw attention to an Element. Usage:

\n\n
// default: a single light blue ripple\nel.frame();\n\n// custom: 3 red ripples lasting 3 seconds total\nel.frame(\"#ff0000\", 3, { duration: 3000 });\n\n// common config options shown with default values\nel.frame(\"#C3DAF9\", 1, {\n    duration: 1000 // duration of each individual ripple.\n    // Note: Easing is not configurable and will be ignored if included\n});\n
\n

Parameters

  • color : String (optional)

    The hex color value for the border.

    \n

    Defaults to: "#C3DAF9"

  • count : Number (optional)

    The number of ripples to display.

    \n

    Defaults to: 1

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Returns the active element in the DOM. ...

Returns the active element in the DOM. If the browser supports activeElement\non the document, this is returned. If not, the focus is tracked and the active\nelement is maintained internally.

\n

Returns

  • HTMLElement

    The active (focused) element in the document.

    \n
Ext.dom.Element
view source
( String/HTMLElement/Ext.Element element, [String position], [Number[] offsets] ) : Number[]
Gets the x,y coordinates to align this element with another element. ...

Gets the x,y coordinates to align this element with another element. See alignTo for more info on the\nsupported position values.

\n

Parameters

  • element : String/HTMLElement/Ext.Element

    The element to align to.

    \n
  • position : String (optional)

    The position to align to (defaults to )

    \n

    Defaults to: "tl-bl?"

  • offsets : Number[] (optional)

    Offset the positioning by [x, y]

    \n

Returns

Overrides: Ext.dom.AbstractElement.getAlignToXY

Ext.dom.Element
view source
( [String anchor], [Boolean local], [Object size] ) : Number[]
Gets the x,y coordinates specified by the anchor position on the element. ...

Gets the x,y coordinates specified by the anchor position on the element.

\n

Parameters

  • anchor : String (optional)

    The specified anchor position. See alignTo\nfor details on supported anchor positions.

    \n

    Defaults to: "c"

  • local : Boolean (optional)

    True to get the local (element top/left-relative) anchor position instead\nof page coordinates

    \n
  • size : Object (optional)

    An object containing the size to use for calculating anchor position\n{width: (target width), height: (target height)} (defaults to the element's current size)

    \n

Returns

  • Number[]

    [x, y] An array containing the element's x and y coordinates

    \n

Overrides: Ext.dom.AbstractElement.getAnchorXY

Returns the value of an attribute from the element's underlying DOM node. ...

Returns the value of an attribute from the element's underlying DOM node.

\n

Parameters

  • name : String

    The attribute name

    \n
  • namespace : String (optional)

    The namespace in which to look for the attribute

    \n

Returns

Ext.dom.Element
view source
( String namespace, String name ) : String
Returns the value of a namespaced attribute from the element's underlying DOM node. ...

Returns the value of a namespaced attribute from the element's underlying DOM node.

\n

Parameters

  • namespace : String

    The namespace in which to look for the attribute

    \n
  • name : String

    The attribute name

    \n

Returns

Gets the width of the border(s) for the specified side(s) ...

Gets the width of the border(s) for the specified side(s)

\n

Parameters

  • side : String

    Can be t, l, r, b or any combination of those to add multiple values. For example,\npassing 'lr' would get the border left width + the border right width.

    \n

Returns

  • Number

    The width of the sides passed added together

    \n
Gets the bottom Y coordinate of the element (element Y position + element height) ...

Gets the bottom Y coordinate of the element (element Y position + element height)

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/locati...

Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/location to match this element.

\n

Parameters

  • contentBox : Boolean (optional)

    If true a box for the content of the element is returned.

    \n
  • local : Boolean (optional)

    If true the element's left and top are returned instead of page x/y.

    \n

Returns

  • Object

    box An object in the format:

    \n\n
    {\n    x: <Element's X position>,\n    y: <Element's Y position>,\n    width: <Element's width>,\n    height: <Element's height>,\n    bottom: <Element's lower bound>,\n    right: <Element's rightmost bound>\n}\n
    \n\n

    The returned object may also be addressed as an Array where index 0 contains the X position\nand index 1 contains the Y position. So the result may also be used for setXY

    \n
Returns a child element of this element given its id. ...

Returns a child element of this element given its id.

\n

Parameters

  • id : String

    The id of the desired child element.

    \n
  • asDom : Boolean (optional)

    True to return the DOM element, false to return a\nwrapped Element object.

    \n

    Defaults to: false

Ext.dom.Element
view source
( ) : Number[]
Calculates the x, y to center this element on the screen ...

Calculates the x, y to center this element on the screen

\n

Returns

  • Number[]

    The x, y values [x, y]

    \n
Ext.dom.Element
view source
( String attr, String defaultValue, [String prefix] )
Return the CSS color for the specified CSS attribute. ...

Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values\nare convert to standard 6 digit hex color.

\n

Parameters

  • attr : String

    The css attribute

    \n
  • defaultValue : String

    The default value to use when a valid color isn't found

    \n
  • prefix : String (optional)

    defaults to #. Use an empty string when working with\ncolor anims.

    \n
Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders\nwhen...

Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders\nwhen needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements\nif a height has not been set using CSS.

\n

Returns

Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders\nwhen ne...

Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders\nwhen needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements\nif a width has not been set using CSS.

\n

Returns

...
\n

Parameters

Ext.dom.Element
view source
( Ext.Element/Ext.util.Region constrainTo, Number[] proposedPosition ) : Number[]/Boolean
Returns the [X, Y] vector by which this element must be translated to make a best attempt\nto constrain within the pas...

Returns the [X, Y] vector by which this element must be translated to make a best attempt\nto constrain within the passed constraint. Returns false is this element does not need to be moved.

\n\n

Priority is given to constraining the top and left within the constraint.

\n\n

The constraint may either be an existing element into which this element is to be constrained, or\nan Region into which this element is to be constrained.

\n

Parameters

  • constrainTo : Ext.Element/Ext.util.Region

    The Element or Region into which this element is to be constrained.

    \n
  • proposedPosition : Number[]

    A proposed [X, Y] position to test for validity and to produce a vector for instead\nof using this Element's current position;

    \n

Returns

  • Number[]/Boolean

    If this element needs to be translated, an [X, Y]\nvector by which this element must be translated. Otherwise, false.

    \n
Ext.dom.Element
view source
( String sides ) : Number
Returns the sum width of the padding and borders for the passed \"sides\". ...

Returns the sum width of the padding and borders for the passed \"sides\". See getBorderWidth()\nfor more information about the sides.

\n

Parameters

Returns

Returns the innerHTML of an Element or an empty string if the element's\ndom no longer exists. ...

Returns the innerHTML of an Element or an empty string if the element's\ndom no longer exists.

\n
Returns the offset height of the element ...

Returns the offset height of the element

\n

Parameters

  • contentHeight : Boolean (optional)

    true to get the height minus borders and padding

    \n

Returns

Returns the initial configuration passed to constructor when instantiating\nthis class. ...

Returns the initial configuration passed to constructor when instantiating\nthis class.

\n

Parameters

  • name : String (optional)

    Name of the config option to return.

    \n

Returns

  • Object/Mixed

    The full config object or a single config value\nwhen name parameter specified.

    \n
Gets the left X coordinate ...

Gets the left X coordinate

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

Gets this element's ElementLoader ...

Gets this element's ElementLoader

\n

Returns

Ext.dom.Element
view source
( ) : Number
Returns the x-coordinate of this element reletive to its offsetParent. ...

Returns the x-coordinate of this element reletive to its offsetParent.

\n

Returns

  • Number

    The local x-coordinate (relative to the offsetParent).

    \n
Ext.dom.Element
view source
( ) : Number
Returns the y-coordinate of this element reletive to its offsetParent. ...

Returns the y-coordinate of this element reletive to its offsetParent.

\n

Returns

  • Number

    The local y-coordinate (relative to the offsetParent).

    \n
Returns an object with properties top, left, right and bottom representing the margins of this element unless sides i...

Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,\nthen it returns the calculated width of the sides (see getPadding)

\n

Parameters

  • sides : String (optional)

    Any combination of l, r, t, b to get the sum of those sides

    \n

Returns

Ext.dom.Element
view source
( String/HTMLElement/Ext.Element element ) : Number[]
Returns the offsets of this element from the passed element. ...

Returns the offsets of this element from the passed element. Both element must be part\nof the DOM tree and not have display:none to have page coordinates.

\n

Parameters

Returns

  • Number[]

    The XY page offsets (e.g. [100, -200])

    \n

Overrides: Ext.dom.AbstractElement.getOffsetsTo

Gets the width of the padding(s) for the specified side(s) ...

Gets the width of the padding(s) for the specified side(s)

\n

Parameters

  • side : String

    Can be t, l, r, b or any combination of those to add multiple values. For example,\npassing 'lr' would get the padding left + the padding right.

    \n

Returns

  • Number

    The padding of the sides passed added together

    \n
Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/locati...

Return an object defining the area of this Element which can be passed to setBox to\nset another Element's size/location to match this element.

\n

Parameters

Returns

  • Object

    box An object in the format

    \n\n
    {\n    left: <Element's X position>,\n    top: <Element's Y position>,\n    width: <Element's width>,\n    height: <Element's height>,\n    bottom: <Element's lower bound>,\n    right: <Element's rightmost bound>\n}\n
    \n\n

    The returned object may also be addressed as an Array where index 0 contains the X position\nand index 1 contains the Y position. So the result may also be used for setXY

    \n
Ext.dom.Element
view source
( ) : Object
Gets an object with all CSS positioning properties. ...

Gets an object with all CSS positioning properties. Useful along with #setPostioning to get\nsnapshot before performing an update and then restoring the element.

\n

Returns

Returns the region of this element. ...

Returns the region of this element.\nThe element must be part of the DOM tree to have a region\n(display:none or elements not appended return false).

\n

Returns

  • Ext.util.Region

    A Region containing \"top, left, bottom, right\" member data.

    \n
Gets the right X coordinate of the element (element X position + element width) ...

Gets the right X coordinate of the element (element X position + element width)

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

Creates a function to call to clean up problems with the work-around for the\nWebKit RightMargin bug. ...

Creates a function to call to clean up problems with the work-around for the\nWebKit RightMargin bug. The work-around is to add \"display: 'inline-block'\" to\nthe element before calling getComputedStyle and then to restore its original\ndisplay value. The problem with this is that it corrupts the selection of an\nINPUT or TEXTAREA element (as in the \"I-beam\" goes away but ths focus remains).\nTo cleanup after this, we need to capture the selection of any such element and\nthen restore it after we have restored the display style.

\n

Parameters

Ext.dom.Element
view source
( ) : HTMLElementprotected
Gets the parent node of the current element taking into account Ext.scopeResetCSS ...

Gets the parent node of the current element taking into account Ext.scopeResetCSS

\n

Returns

  • HTMLElement

    The parent element

    \n
Ext.dom.Element
view source
( ) : Object
Returns the current scroll position of the element. ...

Returns the current scroll position of the element.

\n

Returns

  • Object

    An object containing the scroll position in the format\n{left: (scrollLeft), top: (scrollTop)}

    \n
Returns the size of the element. ...

Returns the size of the element.

\n

Parameters

  • contentSize : Boolean (optional)

    true to get the width/size minus borders and padding

    \n

Returns

Returns a named style property based on computed/currentStyle (primary) and\ninline-style if primary is not available. ...

Returns a named style property based on computed/currentStyle (primary) and\ninline-style if primary is not available.

\n

Parameters

  • property : String/String[]

    The style property (or multiple property names\nin an array) whose value is returned.

    \n
  • inline : Boolean (optional)

    if true only inline styles will be returned.

    \n

    Defaults to: false

Returns

  • String/Object

    The current value of the style property for this element\n(or a hash of named style values if multiple property arguments are requested).

    \n
Ext.dom.Element
view source
( ) : Object
Returns the dimensions of the element available to lay content out in. ...

Returns the dimensions of the element available to lay content out in.

\n\n

getStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and\noffsetWidth/clientWidth. To obtain the size excluding scrollbars, use getViewSize.

\n\n

Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.

\n

Returns

Ext.dom.Element
view source
( String text, [Number min], [Number max] ) : Number
Returns the width in pixels of the passed text, or the width of the text in this Element. ...

Returns the width in pixels of the passed text, or the width of the text in this Element.

\n

Parameters

  • text : String

    The text to measure. Defaults to the innerHTML of the element.

    \n
  • min : Number (optional)

    The minumum value to return.

    \n
  • max : Number (optional)

    The maximum value to return.

    \n

Returns

  • Number

    The text width in pixels.

    \n
Gets the top Y coordinate ...

Gets the top Y coordinate

\n

Parameters

  • local : Boolean

    True to get the local css position instead of page coordinate

    \n

Returns

Returns the value of the \"value\" attribute ...

Returns the value of the \"value\" attribute

\n

Parameters

  • asNumber : Boolean

    true to parse the value as a number

    \n

Returns

Returns the content region of this element. ...

Returns the content region of this element. That is the region within the borders and padding.

\n

Returns

  • Ext.util.Region

    A Region containing \"top, left, bottom, right\" member data.

    \n
Returns the dimensions of the element available to lay content out in. ...

Returns the dimensions of the element available to lay content out in.

\n\n

If the element (or any ancestor element) has CSS style display: none, the dimensions will be zero.

\n\n

Example:

\n\n
var vpSize = Ext.getBody().getViewSize();\n\n// all Windows created afterwards will have a default value of 90% height and 95% width\nExt.Window.override({\n    width: vpSize.width * 0.9,\n    height: vpSize.height * 0.95\n});\n// To handle window resizing you would have to hook onto onWindowResize.\n
\n\n

getViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars.\nTo obtain the size including scrollbars, use getStyleSize

\n\n

Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.

\n

Returns

Returns the offset width of the element ...

Returns the offset width of the element

\n

Parameters

  • contentWidth : Boolean (optional)

    true to get the width minus borders and padding

    \n

Returns

Gets the current X position of the element based on page coordinates. ...

Gets the current X position of the element based on page coordinates. Element must be part of the DOM\ntree to have page coordinates (display:none or elements not appended return false).

\n

Parameters

Returns

  • Number

    The X position of the element

    \n
Ext.dom.Element
view source
( ) : Number[]
Gets the current position of the element based on page coordinates. ...

Gets the current position of the element based on page coordinates.\nElement must be part of the DOM tree to have page coordinates\n(display:none or elements not appended return false).

\n

Returns

  • Number[]

    The XY position of the element

    \n

Overrides: Ext.dom.AbstractElement.getXY

Gets the current Y position of the element based on page coordinates. ...

Gets the current Y position of the element based on page coordinates. Element must be part of the DOM\ntree to have page coordinates (display:none or elements not appended return false).

\n

Parameters

Returns

  • Number

    The Y position of the element

    \n
Ext.dom.Element
view source
( [String anchor], [Object options] ) : Ext.dom.Element
Slides the element while fading it out of view. ...

Slides the element while fading it out of view. An anchor point can be optionally passed to set the ending point\nof the effect. Usage:

\n\n
// default: slide the element downward while fading out\nel.ghost();\n\n// custom: slide the element out to the right with a 2-second duration\nel.ghost('r', { duration: 2000 });\n\n// common config options shown with default values\nel.ghost('b', {\n    easing: 'easeOut',\n    duration: 500\n});\n
\n

Parameters

  • anchor : String (optional)

    One of the valid Fx anchor positions (defaults to bottom: 'b')

    \n
  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Checks if the specified CSS class exists on this element's DOM node. ...

Checks if the specified CSS class exists on this element's DOM node.

\n

Parameters

  • className : String

    The CSS class to check for

    \n

Returns

  • Boolean

    True if the class exists, else false

    \n
...
\n

Parameters

Ext.dom.Element
view source
( )private
Determine if the Element has a relevant height and width available based\nupon current logical visibility state ...

Determine if the Element has a relevant height and width available based\nupon current logical visibility state

\n
Ext.dom.Element
view source
( [Boolean/Object animate] ) : Ext.dom.Element
Hide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". ...

Hide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.

\n

Parameters

  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Overrides: Ext.dom.AbstractElement.hide

Ext.dom.Element
view source
( [String color], [Object options] ) : Ext.dom.Element
Highlights the Element by setting a color (applies to the background-color by default, but can be changed using\nthe \"...

Highlights the Element by setting a color (applies to the background-color by default, but can be changed using\nthe \"attr\" config option) and then fading back to the original color. If no original color is available, you\nshould provide the \"endColor\" config option which will be cleared after the animation. Usage:

\n\n
// default: highlight background to yellow\nel.highlight();\n\n// custom: highlight foreground text to blue for 2 seconds\nel.highlight(\"0000ff\", { attr: 'color', duration: 2000 });\n\n// common config options shown with default values\nel.highlight(\"ffff9c\", {\n    attr: \"backgroundColor\", //can be any valid CSS property (attribute) that supports a color value\n    endColor: (current color) or \"ffffff\",\n    easing: 'easeIn',\n    duration: 1000\n});\n
\n

Parameters

  • color : String (optional)

    The highlight color. Should be a 6 char hex color without the leading #\n(defaults to yellow: 'ffff9c')

    \n
  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Ext.dom.Element
view source
( Function overFn, Function outFn, [Object scope], [Object options] ) : Ext.dom.Element
Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. ...

Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element.

\n

Parameters

  • overFn : Function

    The function to call when the mouse enters the Element.

    \n
  • outFn : Function

    The function to call when the mouse leaves the Element.

    \n
  • scope : Object (optional)

    The scope (this reference) in which the functions are executed. Defaults\nto the Element's DOM element.

    \n
  • options : Object (optional)

    Options for the listener. See the\noptions parameter.

    \n

Returns

Initialize configuration for this class. ...

Initialize configuration for this class. a typical example:

\n\n
Ext.define('My.awesome.Class', {\n    // The default config\n    config: {\n        name: 'Awesome',\n        isAwesome: true\n    },\n\n    constructor: function(config) {\n        this.initConfig(config);\n    }\n});\n\nvar awesome = new My.awesome.Class({\n    name: 'Super Awesome'\n});\n\nalert(awesome.getName()); // 'Super Awesome'\n
\n

Parameters

Returns

Ext.dom.Element
view source
( String group, Object config, Object overrides ) : Ext.dd.DD
Initializes a Ext.dd.DD drag drop object for this element. ...

Initializes a Ext.dd.DD drag drop object for this element.

\n

Parameters

  • group : String

    The group the DD object is member of

    \n
  • config : Object

    The DD config object

    \n
  • overrides : Object

    An object containing methods to override/implement on the DD object

    \n

Returns

Ext.dom.Element
view source
( String group, Object config, Object overrides ) : Ext.dd.DDProxy
Initializes a Ext.dd.DDProxy object for this element. ...

Initializes a Ext.dd.DDProxy object for this element.

\n

Parameters

  • group : String

    The group the DDProxy object is member of

    \n
  • config : Object

    The DDProxy config object

    \n
  • overrides : Object

    An object containing methods to override/implement on the DDProxy object

    \n

Returns

Ext.dom.Element
view source
( String group, Object config, Object overrides ) : Ext.dd.DDTarget
Initializes a Ext.dd.DDTarget object for this element. ...

Initializes a Ext.dd.DDTarget object for this element.

\n

Parameters

  • group : String

    The group the DDTarget object is member of

    \n
  • config : Object

    The DDTarget config object

    \n
  • overrides : Object

    An object containing methods to override/implement on the DDTarget object

    \n

Returns

Inserts this element after the passed element in the DOM ...

Inserts this element after the passed element in the DOM

\n

Parameters

Returns

Inserts this element before the passed element in the DOM ...

Inserts this element before the passed element in the DOM

\n

Parameters

  • el : String/HTMLElement/Ext.dom.AbstractElement

    The element before which this element will be inserted.\nThe id of the node, a DOM Node or an existing Element.

    \n

Returns

Inserts (or creates) an element (or DomHelper config) as the first child of this element ...

Inserts (or creates) an element (or DomHelper config) as the first child of this element

\n

Parameters

Returns

Inserts an html fragment into this element ...

Inserts an html fragment into this element

\n

Parameters

Returns

Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element ...

Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element

\n

Parameters

Returns

Returns true if this element matches the passed simple selector (e.g. ...

Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)

\n

Parameters

  • selector : String

    The simple selector to test

    \n

Returns

  • Boolean

    True if this element matches the selector, else false

    \n
Ext.dom.Element
view source
( ) : Boolean
Tests various css rules/browsers to determine if this element uses a border box ...

Tests various css rules/browsers to determine if this element uses a border box

\n

Returns

Ext.dom.Element
view source
( ) : Boolean
Returns true if display is not \"none\" ...

Returns true if display is not \"none\"

\n

Returns

Ext.dom.Element
view source
( ) : Boolean
Returns true if this element is masked. ...

Returns true if this element is masked. Also re-centers any displayed message within the mask.

\n

Returns

Ext.dom.Element
view source
( ) : Boolean
Returns true if this element is scrollable. ...

Returns true if this element is scrollable.

\n

Returns

Checks if the current value of a style is equal to a given value. ...

Checks if the current value of a style is equal to a given value.

\n

Parameters

  • style : String

    property whose value is returned.

    \n
  • value : String

    to check against.

    \n

Returns

  • Boolean

    true for when the current value equals the given value.

    \n
Returns true if the value of the given property is visually transparent. ...

Returns true if the value of the given property is visually transparent. This\nmay be due to a 'transparent' style value or an rgba value with 0 in the alpha\ncomponent.

\n

Parameters

  • prop : String

    The style property whose value is to be tested.

    \n

Returns

  • Boolean

    True if the style property is visually transparent.

    \n
Ext.dom.Element
view source
( [Boolean deep] ) : Boolean
Checks whether the element is currently visible using both visibility and display properties. ...

Checks whether the element is currently visible using both visibility and display properties.

\n

Parameters

  • deep : Boolean (optional)

    True to walk the dom and see if parent elements are hidden.\nIf false, the function only checks the visibility of the element itself and it may return\ntrue even though a parent is not visible.

    \n

    Defaults to: false

Returns

  • Boolean

    true if the element is currently visible, else false

    \n
( [String selector], [Boolean returnDom] ) : Ext.dom.Element/HTMLElement
Gets the last child, skipping text nodes ...

Gets the last child, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the previous sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.dom.Element

    \n

    Defaults to: false

Returns

Ext.dom.Element
view source
( Object options ) : Ext.dom.Element
Direct access to the Ext.ElementLoader Ext.ElementLoader.load method. ...

Direct access to the Ext.ElementLoader Ext.ElementLoader.load method. The method takes the same object\nparameter as Ext.ElementLoader.load

\n

Parameters

Returns

Ext.dom.Element
view source
( [String msg], [String msgCls] ) : Ext.dom.Element
Puts a mask over this element to disable user interaction. ...

Puts a mask over this element to disable user interaction. Requires core.css.\nThis method can only be applied to elements which accept child nodes.

\n

Parameters

  • msg : String (optional)

    A message to display in the mask

    \n
  • msgCls : String (optional)

    A css class to apply to the msg element

    \n

Returns

Overrides: Ext.dom.AbstractElement.mask

Ext.dom.Element
view source
( Number delay, Function handler, [Object scope] ) : Object
Monitors this Element for the mouse leaving. ...

Monitors this Element for the mouse leaving. Calls the function after the specified delay only if\nthe mouse was not moved back into the Element within the delay. If the mouse was moved\nback in, the function is not called.

\n

Parameters

  • delay : Number

    The delay in milliseconds to wait for possible mouse re-entry before calling the handler function.

    \n
  • handler : Function

    The function to call if the mouse remains outside of this Element for the specified time.

    \n
  • scope : Object (optional)

    The scope (this reference) in which the handler function executes. Defaults to this Element.

    \n

Returns

  • Object

    The listeners object which was added to this element so that monitoring can be stopped. Example usage:

    \n\n
    // Hide the menu if the mouse moves out for 250ms or more\nthis.mouseLeaveMonitor = this.menuEl.monitorMouseLeave(250, this.hideMenu, this);\n\n...\n// Remove mouseleave monitor on menu destroy\nthis.menuEl.un(this.mouseLeaveMonitor);\n
    \n
Ext.dom.Element
view source
( String direction, Number distance, [Boolean/Object animate] )
Move this element relative to its current position. ...

Move this element relative to its current position.

\n

Parameters

  • direction : String

    Possible values are:

    \n\n
      \n
    • \"l\" (or \"left\")
    • \n
    • \"r\" (or \"right\")
    • \n
    • \"t\" (or \"top\", or \"up\")
    • \n
    • \"b\" (or \"bottom\", or \"down\")
    • \n
    \n\n
  • distance : Number

    How far to move the element in pixels

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element\nanimation config object

    \n
Sets the position of the element in page coordinates, regardless of how the element\nis positioned. ...

Sets the position of the element in page coordinates, regardless of how the element\nis positioned. The element must be part of the DOM tree to have page coordinates\n(display:none or elements not appended return false).

\n

Parameters

  • x : Number

    X value for new position (coordinates are page-based)

    \n
  • y : Number

    Y value for new position (coordinates are page-based)

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element\nanimation config object

    \n

Returns

Ext.dom.Element
view source
( )
Returns true if this element needs an explicit tabIndex to make it focusable. ...

Returns true if this element needs an explicit tabIndex to make it focusable. Input fields, text areas, buttons\nanchors elements with an href etc do not need a tabIndex, but structural elements do.

\n
( [String selector], [Boolean returnDom] ) : Ext.dom.Element/HTMLElement
Gets the next sibling, skipping text nodes ...

Gets the next sibling, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the next sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.dom.Element

    \n

    Defaults to: false

Returns

Ext.dom.Element
view source
( String eventName, Function fn, [Object scope], [Object options] ) : Ext.dom.Element
Appends an event handler to this element. ...

Appends an event handler to this element.

\n

Parameters

  • eventName : String

    The name of event to handle.

    \n\n
  • fn : Function

    The handler function the event invokes. This function is passed the following parameters:

    \n\n\n\n\n
      \n
    • evt : EventObject

      \n\n

      The EventObject describing the event.

    • \n
    • el : HtmlElement

      \n\n

      The DOM element which was the target of the event. Note that this may be filtered by using the delegate option.

    • \n
    • o : Object

      \n\n

      The options object from the call that setup the listener.

    • \n
    \n\n\n\n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.

    \n\n
  • options : Object (optional)

    An object containing handler configuration properties. This may contain any of\nthe following properties:

    \n\n\n\n\n
      \n
    • scope Object :

      \n\n

      The scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.

    • \n
    • delegate String:

      \n\n

      A simple selector to filter the target or look for a descendant of the target. See below for additional details.

    • \n
    • stopEvent Boolean:

      \n\n

      True to stop the event. That is stop propagation, and prevent the default action.

    • \n
    • preventDefault Boolean:

      \n\n

      True to prevent the default action

    • \n
    • stopPropagation Boolean:

      \n\n

      True to prevent event propagation

    • \n
    • normalized Boolean:

      \n\n

      False to pass a browser event to the handler function instead of an Ext.EventObject

    • \n
    • target Ext.dom.Element:

      \n\n

      Only call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.

    • \n
    • delay Number:

      \n\n

      The number of milliseconds to delay the invocation of the handler after the event fires.

    • \n
    • single Boolean:

      \n\n

      True to add a handler to handle just the next firing of the event, and then remove itself.

    • \n
    • buffer Number:

      \n\n

      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed by the specified number of\nmilliseconds. If the event fires again within that time, the original handler is not invoked, but the new\nhandler is scheduled in its place.

    • \n
    \n\n\n\n\n

    Combining Options

    \n\n\n\n\n

    Using the options argument, it is possible to combine different types of listeners:

    \n\n\n\n\n

    A delayed, one-time listener that auto stops the event and adds a custom argument (forumId) to the options\nobject. The options object is available as the third parameter in the handler function.

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on('click', this.onClick, this, {\n    single: true,\n    delay: 100,\n    stopEvent : true,\n    forumId: 4\n});\n
    \n\n\n\n\n

    Attaching multiple handlers in 1 call

    \n\n\n\n\n

    The method also allows for a single argument to be passed which is a config object containing properties which\nspecify multiple handlers.

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on({\n    'click' : {\n        fn: this.onClick,\n        scope: this,\n        delay: 100\n    },\n    'mouseover' : {\n        fn: this.onMouseOver,\n        scope: this\n    },\n    'mouseout' : {\n        fn: this.onMouseOut,\n        scope: this\n    }\n});\n
    \n\n\n\n\n

    Or a shorthand syntax:

    \n\n\n\n\n

    Code:

    \n\n\n\n\n
    el.on({\n    'click' : this.onClick,\n    'mouseover' : this.onMouseOver,\n    'mouseout' : this.onMouseOut,\n    scope: this\n});\n
    \n\n\n\n\n

    delegate

    \n\n\n\n\n

    This is a configuration option that you can pass along when registering a handler for an event to assist with\nevent delegation. Event delegation is a technique that is used to reduce memory consumption and prevent exposure\nto memory-leaks. By registering an event for a container element as opposed to each element within a container.\nBy setting this configuration option to a simple selector, the target element will be filtered to look for a\ndescendant of the target. For example:

    \n\n\n\n\n
    // using this markup:\n<div id='elId'>\n    <p id='p1'>paragraph one</p>\n    <p id='p2' class='clickable'>paragraph two</p>\n    <p id='p3'>paragraph three</p>\n</div>\n\n// utilize event delegation to registering just one handler on the container element:\nel = Ext.get('elId');\nel.on(\n    'click',\n    function(e,t) {\n        // handle click\n        console.info(t.id); // 'p2'\n    },\n    this,\n    {\n        // filter the target element to be a descendant with the class 'clickable'\n        delegate: '.clickable'\n    }\n);\n
    \n\n

Returns

( Object names, Object callback, Object scope )private
...
\n

Parameters

Gets the parent node for this element, optionally chaining up trying to match a selector ...

Gets the parent node for this element, optionally chaining up trying to match a selector

\n

Parameters

  • selector : String (optional)

    Find a parent node that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.dom.Element

    \n

    Defaults to: false

Returns

Ext.dom.Element
view source
( Number seconds ) : Ext.Elementdeprecated
Creates a pause before any subsequent queued effects begin. ...

Creates a pause before any subsequent queued effects begin. If there are no effects queued after the pause it will\nhave no effect. Usage:

\n\n
el.pause(1);\n
\n
\n

This method has been deprecated since 4.0

\n

Use the delay config to animate instead.

\n\n
\n

Parameters

  • seconds : Number

    The length of time to pause (in seconds)

    \n

Returns

Creates mappings for 'margin-before' to 'marginLeft' (etc.) given the output\nmap and an ordering pair (e.g., ['left',...

Creates mappings for 'margin-before' to 'marginLeft' (etc.) given the output\nmap and an ordering pair (e.g., ['left', 'right']). The ordering pair is in\nbefore/after order.

\n

Parameters

Ext.dom.Element
view source
( [String pos], [Number zIndex], [Number x], [Number y] )
Initializes positioning on this element. ...

Initializes positioning on this element. If a desired position is not passed, it will make the\nthe element positioned relative IF it is not already positioned.

\n

Parameters

  • pos : String (optional)

    Positioning to use \"relative\", \"absolute\" or \"fixed\"

    \n
  • zIndex : Number (optional)

    The zIndex to apply

    \n
  • x : Number (optional)

    Set the page X position

    \n
  • y : Number (optional)

    Set the page Y position

    \n
( [String selector], [Boolean returnDom] ) : Ext.dom.Element/HTMLElement
Gets the previous sibling, skipping text nodes ...

Gets the previous sibling, skipping text nodes

\n

Parameters

  • selector : String (optional)

    Find the previous sibling that matches the passed simple selector

    \n
  • returnDom : Boolean (optional)

    True to return a raw dom node instead of an Ext.dom.Element

    \n

    Defaults to: false

Returns

Ext.dom.Element
view source
( [Object options] ) : Ext.dom.Element
Fades the element out while slowly expanding it in all directions. ...

Fades the element out while slowly expanding it in all directions. When the effect is completed, the element will\nbe hidden (visibility = 'hidden') but block elements will still take up space in the document. Usage:

\n\n
// default\nel.puff();\n\n// common config options shown with default values\nel.puff({\n    easing: 'easeOut',\n    duration: 500,\n    useDisplay: false\n});\n
\n

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Recursively removes all previous added listeners from this element and its children ...

Recursively removes all previous added listeners from this element and its children

\n

Returns

Selects child nodes based on the passed CSS selector (the selector should not contain an id). ...

Selects child nodes based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

  • selector : String

    The CSS selector

    \n

Returns

  • HTMLElement[]

    An array of the matched nodes

    \n
Adds one or more CSS classes to this element and removes the same class(es) from all siblings. ...

Adds one or more CSS classes to this element and removes the same class(es) from all siblings.

\n

Parameters

  • className : String/String[]

    The CSS class to add, or an array of classes

    \n

Returns

Ext.dom.Element
view source
( String eventName, Object observable )
Create an event handler on this element such that when the event fires and is handled by this element,\nit will be rel...

Create an event handler on this element such that when the event fires and is handled by this element,\nit will be relayed to another object (i.e., fired again as if it originated from that object instead).

\n

Parameters

  • eventName : String

    The type of event to relay

    \n
  • observable : Object

    Any object that extends Ext.util.Observable that will provide the context\nfor firing the relayed event

    \n
Removes this element's dom reference. ...

Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode

\n
Removes all previous added listeners from this element ...

Removes all previous added listeners from this element

\n

Returns

Remove any anchor to this element. ...

Remove any anchor to this element. See anchorTo.

\n

Returns

Removes one or more CSS classes from the element. ...

Removes one or more CSS classes from the element.

\n

Parameters

  • className : String/String[]

    The CSS classes to remove separated by space, or an array of classes

    \n

Returns

Ext.dom.Element
view source
( String eventName, Function fn, Object scope ) : Ext.dom.Element
Shorthand for un. ...

Shorthand for un.

\n\n

Removes an event handler from this element.

\n\n

Note: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.

\n\n

Example:

\n\n
el.un('click', this.handlerFn);\n// or\nel.removeListener('click', this.handlerFn);\n
\n

Parameters

  • eventName : String

    The name of the event from which to remove the handler.

    \n\n
  • fn : Function

    The handler function to remove. This must be a reference to the function passed into the\non call.

    \n\n
  • scope : Object

    If a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.

    \n\n

Returns

Forces the browser to repaint this element ...

Forces the browser to repaint this element

\n

Returns

Replaces the passed element with this element ...

Replaces the passed element with this element

\n

Parameters

Returns

Replaces a CSS class on the element with another. ...

Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.

\n

Parameters

  • oldClassName : String

    The CSS class to replace

    \n
  • newClassName : String

    The replacement CSS class

    \n

Returns

Replaces this element with the passed element ...

Replaces this element with the passed element

\n

Parameters

Returns

Ext.dom.Element
view source
( Number width, Number height, [Object options] ) : Ext.Elementdeprecated
Animates the transition of an element's dimensions from a starting height/width to an ending height/width. ...

Animates the transition of an element's dimensions from a starting height/width to an ending height/width. This\nmethod is a convenience implementation of shift. Usage:

\n\n
// change height and width to 100x100 pixels\nel.scale(100, 100);\n\n// common config options shown with default values.  The height and width will default to\n// the element's existing values if passed as null.\nel.scale(\n    [element's width],\n    [element's height], {\n        easing: 'easeOut',\n        duration: 350\n    }\n);\n
\n
\n

This method has been deprecated since 4.0

\n

Just use animate instead.

\n\n
\n

Parameters

  • width : Number

    The new width (pass undefined to keep the original width)

    \n
  • height : Number

    The new height (pass undefined to keep the original height)

    \n
  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Ext.dom.Element
view source
( String direction, Number distance, [Boolean/Object animate] ) : Boolean
Scrolls this element the specified direction. ...

Scrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.

\n

Parameters

  • direction : String

    Possible values are:

    \n\n
      \n
    • \"l\" (or \"left\")
    • \n
    • \"r\" (or \"right\")
    • \n
    • \"t\" (or \"top\", or \"up\")
    • \n
    • \"b\" (or \"bottom\", or \"down\")
    • \n
    \n\n
  • distance : Number

    How far to scroll the element in pixels

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element\nanimation config object

    \n

Returns

  • Boolean

    Returns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go.

    \n
Ext.dom.Element
view source
( Number/Number[]/Object deltaX, Number/Boolean/Object deltaY, Boolean/Object animate ) : Ext.Element
Scrolls this element by the passed delta values, optionally animating. ...

Scrolls this element by the passed delta values, optionally animating.

\n\n

All of the following are equivalent:

\n\n
 el.scrollBy(10, 10, true);\n el.scrollBy([10, 10], true);\n el.scrollBy({ x: 10, y: 10 }, true);\n
\n

Parameters

  • deltaX : Number/Number[]/Object

    Either the x delta, an Array specifying x and y deltas or\nan object with \"x\" and \"y\" properties.

    \n
  • deltaY : Number/Boolean/Object

    Either the y delta, or an animate flag or config object.

    \n
  • animate : Boolean/Object

    Animate flag/config object if the delta values were passed separately.

    \n

Returns

Ext.dom.Element
view source
( [String/HTMLElement/Ext.Element container], [Boolean hscroll], [Boolean/Object animate] ) : Ext.dom.Element
Scrolls this element into view within the passed container. ...

Scrolls this element into view within the passed container.

\n

Parameters

  • container : String/HTMLElement/Ext.Element (optional)

    The container element\nto scroll. Should be a string (id), dom node, or Ext.Element.

    \n

    Defaults to: document.body

  • hscroll : Boolean (optional)

    False to disable horizontal scroll.

    \n

    Defaults to: true

  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element\nanimation config object

    \n

Returns

Ext.dom.Element
view source
( String side, Number value, [Boolean/Object animate] ) : Ext.Element
Scrolls this element the specified scroll point. ...

Scrolls this element the specified scroll point. It does NOT do bounds checking so\nif you scroll to a weird value it will try to do it. For auto bounds checking, use scroll.

\n

Parameters

  • side : String

    Either \"left\" for scrollLeft values or \"top\" for scrollTop values.

    \n
  • value : Number

    The new scroll value

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element\nanimation config object

    \n

Returns

Creates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id). ...

Creates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).

\n

Parameters

  • selector : String

    The CSS selector

    \n
  • unique : Boolean (optional)

    True to create a unique Ext.Element for each element. Defaults to a shared flyweight object.

    \n

Returns

Enable text selection for this element (normalized across browsers) ...

Enable text selection for this element (normalized across browsers)

\n

Returns

Serializes a DOM form into a url encoded string ...

Serializes a DOM form into a url encoded string

\n

Parameters

Returns

Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) ...

Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)

\n

Parameters

  • o : Object

    The object with the attributes

    \n
  • useSet : Boolean (optional)

    false to override the default setAttribute to use expandos.

    \n

    Defaults to: true

Returns

Sets the element's CSS bottom style. ...

Sets the element's CSS bottom style.

\n

Parameters

  • bottom : String

    The bottom CSS property value

    \n

Returns

Sets the element's position and size in one shot. ...

Sets the element's position and size in one shot. If animation is true then width, height,\nx and y will be animated concurrently.

\n

Parameters

  • x : Number

    X value for new position (coordinates are page-based)

    \n
  • y : Number

    Y value for new position (coordinates are page-based)

    \n
  • width : Number/String

    The new width. This may be one of:

    \n\n
      \n
    • A Number specifying the new width in this Element's defaultUnits (by default, pixels)
    • \n
    • A String used to set the CSS width style. Animation may not be used.
    • \n
    \n\n
  • height : Number/String

    The new height. This may be one of:

    \n\n
      \n
    • A Number specifying the new height in this Element's defaultUnits (by default, pixels)
    • \n
    • A String used to set the CSS height style. Animation may not be used.
    • \n
    \n\n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element\nanimation config object

    \n

Returns

Sets the element's box. ...

Sets the element's box. Use getBox() on another element to get a box obj.\nIf animate is true then width, height, x and y will be animated concurrently.

\n

Parameters

  • box : Object

    The box to fill {x, y, width, height}

    \n
  • adjust : Boolean (optional)

    Whether to adjust for box-model issues automatically

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard\nElement animation config object

    \n

Returns

( Object config, Object applyIfNotSet )private
...
\n

Parameters

Sets the CSS display property. ...

Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true.

\n

Parameters

  • value : Boolean/String

    Boolean value to display the element using its default display, or a string to set the display directly.

    \n

Returns

Set the innerHTML of this element ...

Set the innerHTML of this element

\n

Parameters

Returns

Set the height of this Element. ...

Set the height of this Element.

\n\n
// change the height to 200px and animate with default configuration\nExt.fly('elementId').setHeight(200, true);\n\n// change the height to 150px and animate with a custom configuration\nExt.fly('elId').setHeight(150, {\n    duration : 500, // animation will have a duration of .5 seconds\n    // will change the content to \"finished\"\n    callback: function(){ this.update(\"finished\"); }\n});\n
\n

Parameters

  • height : Number/String

    The new height. This may be one of:

    \n\n
      \n
    • A Number specifying the new height in this Element's defaultUnits (by default, pixels.)
    • \n
    • A String used to set the CSS height style. Animation may not be used.
    • \n
    \n\n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Sets the element's left position directly using CSS style (instead of setX). ...

Sets the element's left position directly using CSS style (instead of setX).

\n

Parameters

  • left : String

    The left CSS property value

    \n

Returns

Ext.dom.Element
view source
( String left, String top ) : Ext.dom.Element
Conveniently sets left and top adding default units. ...

Conveniently sets left and top adding default units.

\n

Parameters

  • left : String

    The left CSS property value

    \n
  • top : String

    The top CSS property value

    \n

Returns

Sets the position of the element in page coordinates, regardless of how the element\nis positioned. ...

Sets the position of the element in page coordinates, regardless of how the element\nis positioned. The element must be part of the DOM tree to have page coordinates\n(display:none or elements not appended return false).

\n

Parameters

  • x : Number

    X value for new position (coordinates are page-based)

    \n
  • y : Number

    Y value for new position (coordinates are page-based)

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element\nanimation config object

    \n

Returns

Ext.dom.Element
view source
( Number opacity, [Boolean/Object animate] ) : Ext.dom.Element
Set the opacity of the element ...

Set the opacity of the element

\n

Parameters

  • opacity : Number

    The new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc

    \n
  • animate : Boolean/Object (optional)

    a standard Element animation config object or true for\nthe default animation ({duration: 350, easing: 'easeIn'})

    \n

Returns

Set positioning with an object returned by getPositioning. ...

Set positioning with an object returned by getPositioning.

\n

Parameters

Returns

Sets the element's position and size the specified region. ...

Sets the element's position and size the specified region. If animation is true then width, height,\nx and y will be animated concurrently.

\n

Parameters

  • region : Ext.util.Region

    The region to fill

    \n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element\nanimation config object

    \n

Returns

Sets the element's CSS right style. ...

Sets the element's CSS right style.

\n

Parameters

  • right : String

    The right CSS property value

    \n

Returns

Set the size of this Element. ...

Set the size of this Element. If animation is true, both width and height will be animated concurrently.

\n

Parameters

  • width : Number/String

    The new width. This may be one of:

    \n\n
      \n
    • A Number specifying the new width in this Element's defaultUnits (by default, pixels).
    • \n
    • A String used to set the CSS width style. Animation may not be used.
    • \n
    • A size object in the format {width: widthValue, height: heightValue}.
    • \n
    \n\n
  • height : Number/String

    The new height. This may be one of:

    \n\n
      \n
    • A Number specifying the new height in this Element's defaultUnits (by default, pixels).
    • \n
    • A String used to set the CSS height style. Animation may not be used.
    • \n
    \n\n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Wrapper for setting style properties, also takes single object parameter of multiple styles. ...

Wrapper for setting style properties, also takes single object parameter of multiple styles.

\n

Parameters

  • property : String/Object

    The style property to be set, or an object of multiple styles.

    \n
  • value : String (optional)

    The value to apply to the given property, or null if an object was passed.

    \n

Returns

Sets the element's top position directly using CSS style (instead of setY). ...

Sets the element's top position directly using CSS style (instead of setY).

\n

Parameters

  • top : String

    The top CSS property value

    \n

Returns

Use this to change the visibility mode between VISIBILITY, DISPLAY, OFFSETS or ASCLASS. ...

Use this to change the visibility mode between VISIBILITY, DISPLAY, OFFSETS or ASCLASS.

\n

Parameters

Ext.dom.Element
view source
( Boolean visible, [Boolean/Object animate] ) : Ext.dom.Element
Sets the visibility of the element (see details). ...

Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use\nthe display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property.

\n

Parameters

  • visible : Boolean

    Whether the element is visible

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Overrides: Ext.dom.AbstractElement.setVisible

Set the width of this Element. ...

Set the width of this Element.

\n

Parameters

  • width : Number/String

    The new width. This may be one of:

    \n\n
      \n
    • A Number specifying the new width in this Element's defaultUnits (by default, pixels).
    • \n
    • A String used to set the CSS width style. Animation may not be used.
    • \n
    \n\n
  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Sets the X position of the element based on page coordinates. ...

Sets the X position of the element based on page coordinates. Element must be part of the DOM tree\nto have page coordinates (display:none or elements not appended return false).

\n

Parameters

  • The : Number

    X position of the element

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element\nanimation config object

    \n

Returns

Ext.dom.Element
view source
( Number[] pos, [Boolean/Object animate] ) : Ext.Element
Sets the position of the element in page coordinates, regardless of how the element\nis positioned. ...

Sets the position of the element in page coordinates, regardless of how the element\nis positioned. The element must be part of the DOM tree to have page coordinates\n(display:none or elements not appended return false).

\n

Parameters

  • pos : Number[]

    Contains X & Y [x, y] values for new position (coordinates are page-based)

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element\nanimation config object

    \n

Returns

Overrides: Ext.dom.AbstractElement.setXY

Sets the Y position of the element based on page coordinates. ...

Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree\nto have page coordinates (display:none or elements not appended return false).

\n

Parameters

  • The : Number

    Y position of the element

    \n
  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element\nanimation config object

    \n

Returns

Ext.dom.Element
view source
( Object options ) : Ext.Elementdeprecated
Animates the transition of any combination of an element's dimensions, xy position and/or opacity. ...

Animates the transition of any combination of an element's dimensions, xy position and/or opacity. Any of these\nproperties not specified in the config object will not be changed. This effect requires that at least one new\ndimension, position or opacity setting must be passed in on the config object in order for the function to have\nany effect. Usage:

\n\n
// slide the element horizontally to x position 200 while changing the height and opacity\nel.shift({ x: 200, height: 50, opacity: .8 });\n\n// common config options shown with default values.\nel.shift({\n    width: [element's width],\n    height: [element's height],\n    x: [element's x position],\n    y: [element's y position],\n    opacity: [element's opacity],\n    easing: 'easeOut',\n    duration: 350\n});\n
\n
\n

This method has been deprecated since 4.0

\n

Just use animate instead.

\n\n
\n

Parameters

  • options : Object

    Object literal with any of the Fx config options

    \n

Returns

Ext.dom.Element
view source
( [Boolean/Object animate] ) : Ext.dom.Element
Show this element - Uses display mode to determine whether to use \"display\" or \"visibility\". ...

Show this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.

\n

Parameters

  • animate : Boolean/Object (optional)

    true for the default animation or a standard Element animation config object

    \n

Returns

Overrides: Ext.dom.AbstractElement.show

Ext.dom.Element
view source
( [String anchor], [Object options] ) : Ext.dom.Element
Slides the element into view. ...

Slides the element into view. An anchor point can be optionally passed to set the point of origin for the slide\neffect. This function automatically handles wrapping the element with a fixed-size container if needed. See the\nFx class overview for valid anchor point options. Usage:

\n\n
// default: slide the element in from the top\nel.slideIn();\n\n// custom: slide the element in from the right with a 2-second duration\nel.slideIn('r', { duration: 2000 });\n\n// common config options shown with default values\nel.slideIn('t', {\n    easing: 'easeOut',\n    duration: 500\n});\n
\n

Parameters

  • anchor : String (optional)

    One of the valid Fx anchor positions (defaults to top: 't')

    \n
  • options : Object (optional)

    Object literal with any of the Fx config options

    \n
    • preserveScroll : Boolean

      Set to true if preservation of any descendant elements'\nscrollTop values is required. By default the DOM wrapping operation performed by slideIn and\nslideOut causes the browser to lose all scroll positions.

      \n

Returns

Ext.dom.Element
view source
( [String anchor], [Object options] ) : Ext.dom.Element
Slides the element out of view. ...

Slides the element out of view. An anchor point can be optionally passed to set the end point for the slide\neffect. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will\nstill take up space in the document. The element must be removed from the DOM using the 'remove' config option if\ndesired. This function automatically handles wrapping the element with a fixed-size container if needed. See the\nFx class overview for valid anchor point options. Usage:

\n\n
// default: slide the element out to the top\nel.slideOut();\n\n// custom: slide the element out to the right with a 2-second duration\nel.slideOut('r', { duration: 2000 });\n\n// common config options shown with default values\nel.slideOut('t', {\n    easing: 'easeOut',\n    duration: 500,\n    remove: false,\n    useDisplay: false\n});\n
\n

Parameters

  • anchor : String (optional)

    One of the valid Fx anchor positions (defaults to top: 't')

    \n
  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Get the reference to the class from which this object was instantiated. ...

Get the reference to the class from which this object was instantiated. Note that unlike self,\nthis.statics() is scope-independent and it always returns the class from which it was called, regardless of what\nthis points to during run-time

\n\n
Ext.define('My.Cat', {\n    statics: {\n        totalCreated: 0,\n        speciesName: 'Cat' // My.Cat.speciesName = 'Cat'\n    },\n\n    constructor: function() {\n        var statics = this.statics();\n\n        alert(statics.speciesName);     // always equals to 'Cat' no matter what 'this' refers to\n                                        // equivalent to: My.Cat.speciesName\n\n        alert(this.self.speciesName);   // dependent on 'this'\n\n        statics.totalCreated++;\n    },\n\n    clone: function() {\n        var cloned = new this.self;                      // dependent on 'this'\n\n        cloned.groupName = this.statics().speciesName;   // equivalent to: My.Cat.speciesName\n\n        return cloned;\n    }\n});\n\n\nExt.define('My.SnowLeopard', {\n    extend: 'My.Cat',\n\n    statics: {\n        speciesName: 'Snow Leopard'     // My.SnowLeopard.speciesName = 'Snow Leopard'\n    },\n\n    constructor: function() {\n        this.callParent();\n    }\n});\n\nvar cat = new My.Cat();                 // alerts 'Cat', then alerts 'Cat'\n\nvar snowLeopard = new My.SnowLeopard(); // alerts 'Cat', then alerts 'Snow Leopard'\n\nvar clone = snowLeopard.clone();\nalert(Ext.getClassName(clone));         // alerts 'My.SnowLeopard'\nalert(clone.groupName);                 // alerts 'Cat'\n\nalert(My.Cat.totalCreated);             // alerts 3\n
\n

Returns

Ext.dom.Element
view source
( String/String[] eventName, [Boolean preventDefault] ) : Ext.dom.Element
Stops the specified event(s) from bubbling and optionally prevents the default action ...

Stops the specified event(s) from bubbling and optionally prevents the default action

\n

Parameters

  • eventName : String/String[]

    an event / array of events to stop from bubbling

    \n
  • preventDefault : Boolean (optional)

    true to prevent the default action too

    \n

Returns

Ext.dom.Element
view source
( [Object options] ) : Ext.dom.Element
Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television). ...

Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television).\nWhen the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still\ntake up space in the document. The element must be removed from the DOM using the 'remove' config option if\ndesired. Usage:

\n\n
// default\nel.switchOff();\n\n// all config options shown with default values\nel.switchOff({\n    easing: 'easeIn',\n    duration: .3,\n    remove: false,\n    useDisplay: false\n});\n
\n

Parameters

  • options : Object (optional)

    Object literal with any of the Fx config options

    \n

Returns

Ext.dom.Element
view source
( Object source )private
.\nCurrently used for updating grid cells without modifying DOM structure\n\nSynchronizes content of this Element with t...

.\nCurrently used for updating grid cells without modifying DOM structure

\n\n

Synchronizes content of this Element with the content of the passed element.

\n\n

Style and CSS class are copied from source into this Element, and contents are synched\nrecursively. If a child node is a text node, the textual data is copied.

\n

Parameters

Ext.dom.Element
view source
( [Boolean/Object animate] ) : Ext.dom.Element
Toggles the element's visibility or display, depending on visibility mode. ...

Toggles the element's visibility or display, depending on visibility mode.

\n

Parameters

  • animate : Boolean/Object (optional)

    True for the default animation, or a standard Element animation config object

    \n

Returns

Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). ...

Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).

\n

Parameters

  • className : String

    The CSS class to toggle

    \n

Returns

Translates the passed page coordinates into left/top css values for this element ...

Translates the passed page coordinates into left/top css values for this element

\n

Parameters

  • x : Number/Array

    The page x or an array containing [x, y]

    \n
  • y : Number (optional)

    The page y, required if x is not an array

    \n

Returns

  • Object

    An object with left and top properties. e.g. {left: (value), top: (value)}

    \n
Ext.dom.Element
view source
( String eventName, Function fn, Object scope ) : Ext.dom.Element
Removes an event handler from this element. ...

Removes an event handler from this element.

\n\n

Note: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.

\n\n

Example:

\n\n
el.un('click', this.handlerFn);\n// or\nel.removeListener('click', this.handlerFn);\n
\n

Parameters

  • eventName : String

    The name of the event from which to remove the handler.

    \n\n
  • fn : Function

    The handler function to remove. This must be a reference to the function passed into the\non call.

    \n\n
  • scope : Object

    If a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.

    \n\n

Returns

Return clipping (overflow) to original clipping before clip was called ...

Return clipping (overflow) to original clipping before clip was called

\n

Returns

Ext.dom.Element
view source
( )
Hides a previously applied mask. ...

Hides a previously applied mask.

\n

Overrides: Ext.dom.AbstractElement.unmask

Disables text selection for this element (normalized across browsers) ...

Disables text selection for this element (normalized across browsers)

\n

Returns

Walks up the dom looking for a parent node that matches the passed simple selector (e.g. ...

Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).\nThis is a shortcut for findParentNode() that always returns an Ext.dom.Element.

\n

Parameters

  • selector : String

    The simple selector to test

    \n
  • limit : Number/String/HTMLElement/Ext.Element (optional)

    The max depth to search as a number or an element which causes the upward traversal to stop\nand is not considered for inclusion as the result. (defaults to 50 || document.documentElement)

    \n

Returns

  • Ext.Element

    The matching DOM node (or null if no match was found)

    \n
Ext.dom.Element
view source
( String html, [Boolean loadScripts], [Function callback] ) : Ext.dom.Element
Updates the innerHTML of this element, optionally searching for and processing scripts. ...

Updates the innerHTML of this element, optionally searching for and processing scripts.

\n

Parameters

  • html : String

    The new HTML

    \n
  • loadScripts : Boolean (optional)

    True to look for and process scripts (defaults to false)

    \n
  • callback : Function (optional)

    For async script loading you can be notified when the update completes

    \n

Returns

Overrides: Ext.dom.AbstractElement.update

( [Object config], [Boolean returnDom], [String selector] ) : HTMLElement/Ext.dom.AbstractElement
Creates and wraps this element with another element ...

Creates and wraps this element with another element

\n

Parameters

  • config : Object (optional)

    DomHelper element config object for the wrapper element or null for an empty div

    \n
  • returnDom : Boolean (optional)

    True to return the raw DOM element instead of Ext.dom.AbstractElement

    \n

    Defaults to: false

  • selector : String (optional)

    A DomQuery selector to select a descendant node within the created element to use as the wrapping element.

    \n

Returns

Defined By

Static Methods

( Object config )privatestatic
...
\n

Parameters

...
\n

Parameters

( Object name, Object member )privatestatic
...
\n

Parameters

Add methods / properties to the prototype of this class. ...

Add methods / properties to the prototype of this class.

\n\n
Ext.define('My.awesome.Cat', {\n    constructor: function() {\n        ...\n    }\n});\n\n My.awesome.Cat.addMembers({\n     meow: function() {\n        alert('Meowww...');\n     }\n });\n\n var kitty = new My.awesome.Cat;\n kitty.meow();\n
\n

Parameters

Add / override static properties of this class. ...

Add / override static properties of this class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.addStatics({\n    someProperty: 'someValue',      // My.cool.Class.someProperty = 'someValue'\n    method1: function() { ... },    // My.cool.Class.method1 = function() { ... };\n    method2: function() { ... }     // My.cool.Class.method2 = function() { ... };\n});\n
\n

Parameters

Returns

( Object xtype )privatestatic
...
\n

Parameters

( Ext.Base fromClass, Array/String members ) : Ext.Baseprivatestatic
Borrow another class' members to the prototype of this class. ...

Borrow another class' members to the prototype of this class.

\n\n
Ext.define('Bank', {\n    money: '$$$',\n    printMoney: function() {\n        alert('$$$$$$$');\n    }\n});\n\nExt.define('Thief', {\n    ...\n});\n\nThief.borrow(Bank, ['money', 'printMoney']);\n\nvar steve = new Thief();\n\nalert(steve.money); // alerts '$$$'\nsteve.printMoney(); // alerts '$$$$$$$'\n
\n

Parameters

  • fromClass : Ext.Base

    The class to borrow members from

    \n
  • members : Array/String

    The names of the members to borrow

    \n

Returns

Create a new instance of this Class. ...

Create a new instance of this Class.

\n\n
Ext.define('My.cool.Class', {\n    ...\n});\n\nMy.cool.Class.create({\n    someConfig: true\n});\n
\n\n

All parameters are passed to the constructor of the class.

\n

Returns

Create aliases for existing prototype methods. ...

Create aliases for existing prototype methods. Example:

\n\n
Ext.define('My.cool.Class', {\n    method1: function() { ... },\n    method2: function() { ... }\n});\n\nvar test = new My.cool.Class();\n\nMy.cool.Class.createAlias({\n    method3: 'method1',\n    method4: 'method2'\n});\n\ntest.method3(); // test.method1()\n\nMy.cool.Class.createAlias('method5', 'method3');\n\ntest.method5(); // test.method3() -> test.method1()\n
\n

Parameters

( Object config )privatestatic
...
\n

Parameters

Retrieves Ext.dom.Element objects. ...

Retrieves Ext.dom.Element objects. Ext.get is alias for Ext.dom.Element.get.

\n\n

This method does not retrieve Components. This method retrieves Ext.dom.Element\nobjects which encapsulate DOM elements. To retrieve a Component by its ID, use Ext.ComponentManager.get.

\n\n

Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with\nthe same id via AJAX or DOM.

\n

Parameters

  • el : String/HTMLElement/Ext.Element

    The id of the node, a DOM Node or an existing Element.

    \n

Returns

  • Ext.dom.Element

    The Element object (or null if no matching element was found)

    \n
Get the current class' name in string format. ...

Get the current class' name in string format.

\n\n
Ext.define('My.cool.Class', {\n    constructor: function() {\n        alert(this.self.getName()); // alerts 'My.cool.Class'\n    }\n});\n\nMy.cool.Class.getName(); // 'My.cool.Class'\n
\n

Returns

( )deprecatedstatic
Adds members to class. ...

Adds members to class.

\n
\n

This method has been deprecated since 4.1

\n

Use addMembers instead.

\n\n
\n
( Mixed clsList1, Mixed clsList2 ) : Arraystatic
Returns an array of unique class names based upon the input strings, or string arrays. ...

Returns an array of unique class names based upon the input strings, or string arrays.

\n\n\n

The number of parameters is unlimited.

\n\n\n

Example

\n\n\n

\n\n
// Add x-invalid and x-mandatory classes, do not duplicate\nmyElement.dom.className = Ext.core.Element.mergeClsList(this.initialClasses, 'x-invalid x-mandatory');\n
\n\n\n

\n

Parameters

  • clsList1 : Mixed

    A string of class names, or an array of class names.

    \n
  • clsList2 : Mixed

    A string of class names, or an array of class names.

    \n

Returns

  • Array

    An array of strings representing remaining unique, merged class names. If class names were added to the first list, the changed property will be true.

    \n
( Object name, Object mixinClass )privatestatic
Used internally by the mixins pre-processor ...

Used internally by the mixins pre-processor

\n

Parameters

( Object fn, Object scope )privatestatic
...
\n

Parameters

( Object members ) : Ext.Basedeprecatedstatic
Override members of this class. ...

Override members of this class. Overridden methods can be invoked via\ncallParent.

\n\n
Ext.define('My.Cat', {\n    constructor: function() {\n        alert(\"I'm a cat!\");\n    }\n});\n\nMy.Cat.override({\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n\nvar kitty = new My.Cat(); // alerts \"I'm going to be a cat!\"\n                          // alerts \"I'm a cat!\"\n                          // alerts \"Meeeeoooowwww\"\n
\n\n

As of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:

\n\n
Ext.define('My.CatOverride', {\n    override: 'My.Cat',\n    constructor: function() {\n        alert(\"I'm going to be a cat!\");\n\n        this.callParent(arguments);\n\n        alert(\"Meeeeoooowwww\");\n    }\n});\n
\n\n

The above accomplishes the same result but can be managed by the Ext.Loader\nwhich can properly order the override and its target class and the build process\ncan determine whether the override is needed based on the required state of the\ntarget class (My.Cat).

\n
\n

This method has been deprecated since 4.1.0

\n

Use Ext.define instead

\n\n
\n

Parameters

  • members : Object

    The properties to add to this class. This should be\nspecified as an object literal containing one or more properties.

    \n

Returns

( Mixed existingClsList, Mixed removeClsList ) : Arraystatic
Returns an array of unique class names deom the first parameter with all class names\nfrom the second parameter removed. ...

Returns an array of unique class names deom the first parameter with all class names\nfrom the second parameter removed.

\n\n\n

Example

\n\n\n

\n\n
// Remove x-invalid and x-mandatory classes if present.\nmyElement.dom.className = Ext.core.Element.removeCls(this.initialClasses, 'x-invalid x-mandatory');\n
\n\n\n

\n

Parameters

  • existingClsList : Mixed

    A string of class names, or an array of class names.

    \n
  • removeClsList : Mixed

    A string of class names, or an array of class names to remove from existingClsList.

    \n

Returns

  • Array

    An array of strings representing remaining class names. If class names were removed, the changed property will be true.

    \n
Ext.dom.Element
view source
( String/HTMLElement[] selector, [Boolean unique], [HTMLElement/String root] ) : Ext.CompositeElementLite/Ext.CompositeElementstatic
Selects elements based on the passed CSS selector to enable Element methods\nto be applied to many related elements in...

Selects elements based on the passed CSS selector to enable Element methods\nto be applied to many related elements in one statement through the returned CompositeElement or\nCompositeElementLite object.

\n

Parameters

  • selector : String/HTMLElement[]

    The CSS selector or an array of elements

    \n
  • unique : Boolean (optional)

    true to create a unique Ext.Element for each element (defaults to a shared flyweight object)

    \n
  • root : HTMLElement/String (optional)

    The root element of the query or id of the root

    \n

Returns

Defined By

Events

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when an element is activated, for instance, through a mouse click or a keypress.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when an attribute has been modified.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when the character data has been modified.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Similar to HTML focus event, but can be applied to any focusable element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Similar to HTML blur event, but can be applied to any focusable element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when a node has been added as a child of another node.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when a node is being inserted into a document.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when a descendant node of the element is removed.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when a node is being removed from a document.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Where supported. ...

Where supported. Fires when the subtree is modified.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when an object/image is stopped from loading before completely loaded. ...

Fires when an object/image is stopped from loading before completely loaded.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when an element loses focus either via the pointing device or by tabbing navigation. ...

Fires when an element loses focus either via the pointing device or by tabbing navigation.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a control loses the input focus and its value has been modified since gaining focus. ...

Fires when a control loses the input focus and its value has been modified since gaining focus.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a mouse click is detected within the element. ...

Fires when a mouse click is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a right click is detected within the element. ...

Fires when a right click is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a mouse double click is detected within the element. ...

Fires when a mouse double click is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when an object/image/frame cannot be loaded properly. ...

Fires when an object/image/frame cannot be loaded properly.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when an element receives focus either via the pointing device or by tab navigation. ...

Fires when an element receives focus either via the pointing device or by tab navigation.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a keydown is detected within the element. ...

Fires when a keydown is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a keypress is detected within the element. ...

Fires when a keypress is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a keyup is detected within the element. ...

Fires when a keyup is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when the user agent finishes loading all content within the element. ...

Fires when the user agent finishes loading all content within the element. Only supported by window, frames,\nobjects and images.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a mousedown is detected within the element. ...

Fires when a mousedown is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when the mouse enters the element. ...

Fires when the mouse enters the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when the mouse leaves the element. ...

Fires when the mouse leaves the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a mousemove is detected with the element. ...

Fires when a mousemove is detected with the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a mouseout is detected with the element. ...

Fires when a mouseout is detected with the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a mouseover is detected within the element. ...

Fires when a mouseover is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a mouseup is detected within the element. ...

Fires when a mouseup is detected within the element.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a form is reset. ...

Fires when a form is reset.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a document view is resized. ...

Fires when a document view is resized.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a document view is scrolled. ...

Fires when a document view is scrolled.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a user selects some text in a text field, including input and textarea. ...

Fires when a user selects some text in a text field, including input and textarea.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when a form is submitted. ...

Fires when a form is submitted.

\n

Parameters

Ext.dom.Element
view source
( Ext.EventObject e, HTMLElement t, Object eOpts )
Fires when the user agent removes all content from a window or frame. ...

Fires when the user agent removes all content from a window or frame. For elements, it fires when the target\nelement or any of its content has been removed.

\n

Parameters

","subclasses":["Ext.Layer"],"name":"Ext.dom.Element","alternateClassNames":["Ext.Element","Ext.core.Element"],"inheritdoc":null,"files":[{"href":"Element.html#Ext-dom-Element","filename":"Element.js"},{"href":"Element.alignment.html#Ext-dom-Element","filename":"Element.alignment.js"},{"href":"Element.anim.html#Ext-dom-Element","filename":"Element.anim.js"},{"href":"Element.dd.html#Ext-dom-Element","filename":"Element.dd.js"},{"href":"Element.fx.html#Ext-dom-Element","filename":"Element.fx.js"},{"href":"Element.position.html#Ext-dom-Element","filename":"Element.position.js"},{"href":"Element.scroll.html#Ext-dom-Element","filename":"Element.scroll.js"},{"href":"Element.style.html#Ext-dom-Element","filename":"Element.style.js"},{"href":"Element.traversal.html#Ext-dom-Element","filename":"Element.traversal.js"}],"html_meta":{},"singleton":false,"id":"class-Ext.dom.Element","statics":{"property":[{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"property","name":"$onExtended","id":"static-property-S-onExtended"},{"meta":{"static":true},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"ASCLASS","id":"static-property-ASCLASS"},{"meta":{"static":true},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"DISPLAY","id":"static-property-DISPLAY"},{"meta":{"static":true},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"OFFSETS","id":"static-property-OFFSETS"},{"meta":{"static":true},"owner":"Ext.dom.AbstractElement","tagname":"property","name":"VISIBILITY","id":"static-property-VISIBILITY"}],"event":[],"css_var":[],"method":[{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addConfig","id":"static-method-addConfig"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addInheritableStatics","id":"static-method-addInheritableStatics"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addMember","id":"static-method-addMember"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"addMembers","id":"static-method-addMembers"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"addStatics","id":"static-method-addStatics"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"addXtype","id":"static-method-addXtype"},{"meta":{"private":true,"static":true},"owner":"Ext.Base","tagname":"method","name":"borrow","id":"static-method-borrow"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"create","id":"static-method-create"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"createAlias","id":"static-method-createAlias"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"extend","id":"static-method-extend"},{"meta":{"static":true},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"get","id":"static-method-get"},{"meta":{"static":true},"owner":"Ext.Base","tagname":"method","name":"getName","id":"static-method-getName"},{"meta":{"deprecated":{"text":"Use {@link #addMembers} instead.","version":"4.1"},"static":true},"owner":"Ext.Base","tagname":"method","name":"implement","id":"static-method-implement"},{"meta":{"static":true},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"mergeClsList","id":"static-method-mergeClsList"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"mixin","id":"static-method-mixin"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"onExtended","id":"static-method-onExtended"},{"meta":{"deprecated":{"text":"Use {@link Ext#define Ext.define} instead","version":"4.1.0"},"markdown":true,"static":true},"owner":"Ext.Base","tagname":"method","name":"override","id":"static-method-override"},{"meta":{"static":true},"owner":"Ext.dom.AbstractElement","tagname":"method","name":"removeCls","id":"static-method-removeCls"},{"meta":{"static":true},"owner":"Ext.dom.Element","tagname":"method","name":"select","id":"static-method-select"},{"meta":{"static":true,"private":true},"owner":"Ext.Base","tagname":"method","name":"triggerExtended","id":"static-method-triggerExtended"}],"css_mixin":[],"cfg":[]},"requires":[]});