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.ElementExt.core.ElementHierarchy
Ext.BaseExt.dom.AbstractElementExt.dom.ElementSubclasses
Files
Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.
\n\nAll instances of this class inherit the methods of Ext.fx.Anim making visual effects easily available to all\nDOM elements.
\n\nNote 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\nUsage:
\n\n// by id\nvar el = Ext.get(\"my-div\");\n\n// by DOM element reference\nvar el = Ext.get(myDivElement);\n
\n\nWhen an element is manipulated, by default there is no animation.
\n\nvar el = Ext.get(\"my-div\");\n\n// no animation\nel.setWidth(100);\n
\n\nMany 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\nTo 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\nOption 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\nUsage:
\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\nThe 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\nFor working with collections of Elements, see Ext.CompositeElement
\nTrue to automatically adjust width and height settings for box-model issues.
\nDefaults to: true
The default unit to append to CSS values where a unit isn't provided.
\nDefaults to: "px"
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
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
\nThis shared object is keyed by style name (e.g., 'margin-left' or 'marginLeft'). The\nvalues are objects with the following properties:
\n\nname
(String) : The actual name to be presented to the DOM. This is typically the value\n returned by normalize.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.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.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.
Defaults to: {}
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nAdd or remove the Ext.Layer.visibilityCls class to hide the element.
\nDefaults to: 4
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse the CSS 'display' property to hide the element.
\nDefaults to: 2
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse CSS absolute positioning and top/left offsets to hide the element.
\nDefaults to: 3
Visibility mode constant for use with Ext.dom.Element.setVisibilityMode.\nUse the CSS 'visibility' property to hide the element.
\n\nNote 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.
\nDefaults to: 1
Creates new Element directly.
\nBy 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).
\nAdds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
\nthis
\nSets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect)
\nThe class to add
\nA 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.
\nThe scope to execute the testFn in.
\nthis
\nSets up event handlers to add and remove a css class when this element has the focus
\nThe class to add
\nA 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.
\nThe scope to execute the testFn in.
\nthis
\nSets up event handlers to add and remove a css class when the mouse is over this element
\nThe class to add
\nA 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.
\nThe scope to execute the testFn in.
\nthis
\nCreates a KeyMap for this element
\nThe KeyMap config. See Ext.util.KeyMap for more details
\nThe KeyMap created
\nShorthand for on.
\n\nAppends an event handler to this element.
\nThe name of event to handle.
\n\nThe handler function the event invokes. This function is passed the following parameters:
\n\n\n\n\nevt : EventObject
\n\nThe EventObject describing the event.
el : HtmlElement
\n\nThe DOM element which was the target of the event. Note that this may be filtered by using the delegate option.
o : Object
\n\nThe options object from the call that setup the listener.
The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.
\n\nAn object containing handler configuration properties. This may contain any of\nthe following properties:
\n\n\n\n\nscope Object :
\n\nThe scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.
delegate String:
\n\nA simple selector to filter the target or look for a descendant of the target. See below for additional details.
stopEvent Boolean:
\n\nTrue to stop the event. That is stop propagation, and prevent the default action.
preventDefault Boolean:
\n\nTrue to prevent the default action
stopPropagation Boolean:
\n\nTrue to prevent event propagation
normalized Boolean:
\n\nFalse to pass a browser event to the handler function instead of an Ext.EventObject
target Ext.dom.Element:
\n\nOnly call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.
delay Number:
\n\nThe number of milliseconds to delay the invocation of the handler after the event fires.
single Boolean:
\n\nTrue to add a handler to handle just the next firing of the event, and then remove itself.
buffer Number:
\n\nCauses 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.
Combining Options
\n\n\n\n\nUsing the options argument, it is possible to combine different types of listeners:
\n\n\n\n\nA 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\nCode:
\n\n\n\n\nel.on('click', this.onClick, this, {\n single: true,\n delay: 100,\n stopEvent : true,\n forumId: 4\n});\n
\n\n\n\n\nAttaching multiple handlers in 1 call
\n\n\n\n\nThe 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\nCode:
\n\n\n\n\nel.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\nOr a shorthand syntax:
\n\n\n\n\nCode:
\n\n\n\n\nel.on({\n 'click' : this.onClick,\n 'mouseover' : this.onMouseOver,\n 'mouseout' : this.onMouseOut,\n scope: this\n});\n
\n\n\n\n\ndelegate
\n\n\n\n\nThis 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\nthis
\n\nAligns 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\nIn 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\nValue 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
\nThe element to align to.
\nThe position to align to
\nDefaults to: "tl-bl?"
Offset the positioning by [x, y]
\ntrue for the default animation or a standard Element animation config object
\nthis
\nAnchors an element to another element and realigns it when the window is resized.
\nThe element to align to.
\nThe position to align to.
\nOffset the positioning by [x, y]
\nTrue for the default animation or a standard Element animation config object
\nTrue to monitor body scroll and reposition. If this parameter\nis a number, it is used as the buffer delay (defaults to 50ms).
\nThe function to call after the animation finishes
\nthis
\nPerforms custom animation on this Element.
\n\nThe following properties may be specified in from
, to
, and keyframe
objects:
x
- The page X position in pixels.
y
- The page Y position in pixels
left
- The element's CSS left
value. Units must be supplied.
top
- The element's CSS top
value. Units must be supplied.
width
- The element's CSS width
value. Units must be supplied.
height
- The element's CSS height
value. Units must be supplied.
scrollLeft
- The element's scrollLeft
value.
scrollTop
- The element's scrollTop
value.
opacity
- The element's opacity
value. This must be a value between 0
and 1
.
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.
\nConfiguration for Ext.fx.Anim.\nNote that the to config is required.
\nthis
\nAppends the passed element(s) to this element
\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nAppends this element to the passed element
\nThe new parent element.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nMore flexible version of setStyle for setting style properties.
\nA style specification string, e.g. \"width:100px\", or object in the form {width:\"100px\"}, or\na function which returns such a specification.
\nthis
\nWraps 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\nThis 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\nExt.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\nExample 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
\nA 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.
\nDefaults to: "x-box"
The outermost wrapping element of the created box structure.
\nWhen 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.
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\nvar restoreScroll = myPanel.el.cacheScrollValues();\nmyOtherContainer.add(myPanel);\nrestoreScroll();\n
\nA 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.
Call the original method that was previously overridden with override
\n\nExt.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 This method has been deprecated
\nas of 4.1. Use callParent instead.
\n\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callOverridden(arguments)
Returns the result of calling the overridden method
\nCall 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\nThis 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\nThis 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\nLastly, 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
\nThe arguments, either an array or the arguments
object\nfrom the current method, for example: this.callParent(arguments)
Returns the result of calling the parent method
\nCenters the Element in either the viewport, or another Element.
\nThe element in which to center the element.
\nSelects a single direct child based on the passed CSS selector (the selector should not contain an id).
\nThe CSS selector
\nTrue to return the DOM node instead of Ext.dom.Element.
\nDefaults to: false
The child Ext.dom.Element (or DOM node if returnDom = true)
\nRemoves Empty, or whitespace filled text nodes. Combines adjacent text nodes.
\nBy 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.
\nDefaults to: false
Alias for removeAllListeners.
\n\nRemoves all previous added listeners from this element
\nthis
\n\nClears any opacity settings from this element. Required in some cases for IE.
\nthis
\nClears positioning back to the default when the document was loaded.
\nThe value to use for the left, right, top, bottom. You could use 'auto'.
\nDefaults to: ""
this
\nStore the current overflow setting and clip overflow on the element - use unclip to remove
\nthis
\nCreates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.
\nDomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be\nautomatically generated with the specified attributes.
\na child element of this element
\ntrue to return the dom node instead of creating an Element
\nDefaults to: false
The new child element
\nCreates a proxy element of this element
\nThe class name of the proxy element or a DomHelper config object
\nThe element or element id to render the proxy to. Defaults to: document.body.
\nTrue to align and size the proxy to this element now.
\nDefaults to: false
The new proxy element
\nCreates an iframe shim for this element to keep selects and other windowed objects from\nshowing through.
\nThe new shim element
\nAlias to remove.
\n\nRemoves this element's dom reference. Note that event and cache removal is handled at Ext.removeNode
\nOverrides: Ext.Base.destroy
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).
\nThe CSS selector
\nTrue to return the DOM node instead of Ext.dom.Element
\nDefaults to: false
The child Ext.dom.Element (or DOM node if returnDom = true)
\nConvenience method for setVisibilityMode(Element.DISPLAY)
\nWhat to set display to when visible
\nthis
\nFade an element in (from transparent to opaque). The ending opacity can be specified using the opacity
\nconfig option. Usage:
// 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
\nObject literal with any of the Fx config options
\nThe Element
\nFade 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:
// 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
\nObject literal with any of the Fx config options
\nThe Element
\nLooks 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)
\nThe simple selector to test
\nThe 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)
\nTrue to return a Ext.Element object instead of DOM node
\nDefaults to: false
The matching DOM node (or null if no match was found)
\nLooks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
\nThe simple selector to test
\nThe 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)
\nTrue to return a Ext.Element object instead of DOM node
\nDefaults to: false
The matching DOM node (or null if no match was found)
\nGets the first child, skipping text nodes
\nFind the next sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The first child or null
\nTries to focus the element. Any exceptions are caught and ignored.
\nMilliseconds to defer the focus
\nthis
\nShows 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
\nThe hex color value for the border.
\nDefaults to: "#C3DAF9"
The number of ripples to display.
\nDefaults to: 1
Object literal with any of the Fx config options
\nThe Element
\nReturns 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.
\nThe active (focused) element in the document.
\nGets the x,y coordinates to align this element with another element. See alignTo for more info on the\nsupported position values.
\nThe element to align to.
\nThe position to align to (defaults to )
\nDefaults to: "tl-bl?"
Offset the positioning by [x, y]
\n[x, y]
\nOverrides: Ext.dom.AbstractElement.getAlignToXY
Gets the x,y coordinates specified by the anchor position on the element.
\nThe specified anchor position. See alignTo\nfor details on supported anchor positions.
\nDefaults to: "c"
True to get the local (element top/left-relative) anchor position instead\nof page coordinates
\nAn 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[x, y] An array containing the element's x and y coordinates
\nOverrides: Ext.dom.AbstractElement.getAnchorXY
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.
\nIf true a box for the content of the element is returned.
\nIf true the element's left and top are returned instead of page x/y.
\nbox 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\nThe 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
\nReturn the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff
) and valid values\nare convert to standard 6 digit hex color.
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.
\nReturns 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.
\nReturns 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.
Priority is given to constraining the top and left within the constraint.
\n\nThe 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.
\nThe Element or Region into which this element is to be constrained.
\nA proposed [X, Y]
position to test for validity and to produce a vector for instead\nof using this Element's current position;
Returns the innerHTML of an Element or an empty string if the element's\ndom no longer exists.
\nReturns the x-coordinate of this element reletive to its offsetParent
.
The local x-coordinate (relative to the offsetParent
).
Returns the y-coordinate of this element reletive to its offsetParent
.
The local y-coordinate (relative to the offsetParent
).
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)
\nAny combination of l, r, t, b to get the sum of those sides
\nReturns 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.
\nThe element to get the offsets from.
\nThe XY page offsets (e.g. [100, -200]
)
Overrides: Ext.dom.AbstractElement.getOffsetsTo
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.
\nIf true an Ext.util.Region will be returned
\nbox 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\nThe 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
\nGets an object with all CSS positioning properties. Useful along with #setPostioning to get\nsnapshot before performing an update and then restoring the element.
\nReturns 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).
\nA Region containing \"top, left, bottom, right\" member data.
\nCreates 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.
\nThe top-most element being adjusted.
\nGets the parent node of the current element taking into account Ext.scopeResetCSS
\nThe parent element
\nReturns the current scroll position of the element.
\nAn object containing the scroll position in the format\n{left: (scrollLeft), top: (scrollTop)}
Returns a named style property based on computed/currentStyle (primary) and\ninline-style if primary is not available.
\nThe style property (or multiple property names\nin an array) whose value is returned.
\nif true
only inline styles will be returned.
Defaults to: false
Returns the dimensions of the element available to lay content out in.
\n\ngetStyleSize 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\nSizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.
\nReturns the width in pixels of the passed text, or the width of the text in this Element.
\nThe text to measure. Defaults to the innerHTML of the element.
\nThe minumum value to return.
\nThe maximum value to return.
\nThe text width in pixels.
\nReturns the content region of this element. That is the region within the borders and padding.
\nA Region containing \"top, left, bottom, right\" member data.
\nReturns the dimensions of the element available to lay content out in.
\n\nIf the element (or any ancestor element) has CSS style display: none
, the dimensions will be zero.
Example:
\n\nvar 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\ngetViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars.\nTo obtain the size including scrollbars, use getStyleSize
\n\nSizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.
\nGets 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).
\nThe XY position of the element
\nOverrides: Ext.dom.AbstractElement.getXY
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
\nOne of the valid Fx anchor positions (defaults to bottom: 'b')
\nObject literal with any of the Fx config options
\nThe Element
\nDetermine if the Element has a relevant height and width available based\nupon current logical visibility state
\nHide this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.
\ntrue for the default animation or a standard Element animation config object
\nthis
\nOverrides: Ext.dom.AbstractElement.hide
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
\nThe highlight color. Should be a 6 char hex color without the leading #\n(defaults to yellow: 'ffff9c')
\nObject literal with any of the Fx config options
\nThe Element
\nSets up event handlers to call the passed functions when the mouse is moved into and out of the Element.
\nThe function to call when the mouse enters the Element.
\nThe function to call when the mouse leaves the Element.
\nThe scope (this
reference) in which the functions are executed. Defaults\nto the Element's DOM element.
Options for the listener. See the\noptions parameter.
\nthis
\nInitialize configuration for this class. a typical example:
\n\nExt.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
\nthis
\nInitializes a Ext.dd.DDProxy object for this element.
\nThe group the DDProxy object is member of
\nThe DDProxy config object
\nAn object containing methods to override/implement on the DDProxy object
\nThe DDProxy object
\nInitializes a Ext.dd.DDTarget object for this element.
\nThe group the DDTarget object is member of
\nThe DDTarget config object
\nAn object containing methods to override/implement on the DDTarget object
\nThe DDTarget object
\nInserts this element after the passed element in the DOM
\nThe element to insert after.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nInserts this element before the passed element in the DOM
\nThe element before which this element will be inserted.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nInserts (or creates) an element (or DomHelper config) as the first child of this element
\nThe id or element to insert or a DomHelper config\nto create and insert
\nThe new child
\nInserts an html fragment into this element
\nWhere to insert the html in relation to this element - beforeBegin, afterBegin, beforeEnd, afterEnd.\nSee Ext.dom.Helper.insertHtml for details.
\nThe HTML fragment
\nTrue to return an Ext.dom.AbstractElement
\nDefaults to: false
The inserted node (or nearest related if more than 1 inserted)
\nInserts (or creates) the passed element (or DomHelper config) as a sibling of this element
\nThe id, element to insert or a DomHelper config\nto create and insert or an array of any of those.
\n'before' or 'after'
\nDefaults to: "before"
True to return the .;ll;l,raw DOM element instead of Ext.dom.AbstractElement
\nDefaults to: false
The inserted Element. If an array is passed, the last inserted element is returned.
\nReturns true if this element is masked. Also re-centers any displayed message within the mask.
\nReturns 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.
\nThe style property whose value is to be tested.
\nTrue if the style property is visually transparent.
\nChecks whether the element is currently visible using both visibility and display properties.
\nTrue 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.
Defaults to: false
true
if the element is currently visible, else false
Gets the last child, skipping text nodes
\nFind the previous sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The last child or null
\nDirect access to the Ext.ElementLoader Ext.ElementLoader.load method. The method takes the same object\nparameter as Ext.ElementLoader.load
\nthis
\nPuts a mask over this element to disable user interaction. Requires core.css.\nThis method can only be applied to elements which accept child nodes.
\nA message to display in the mask
\nA css class to apply to the msg element
\nThe mask element
\nOverrides: Ext.dom.AbstractElement.mask
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.
\nThe delay in milliseconds to wait for possible mouse re-entry before calling the handler function.
\nThe function to call if the mouse remains outside of this Element for the specified time.
\nThe scope (this
reference) in which the handler function executes. Defaults to this Element.
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
\nMove this element relative to its current position.
\nPossible values are:
\n\n\"l\"
(or \"left\"
)\"r\"
(or \"right\"
)\"t\"
(or \"top\"
, or \"up\"
)\"b\"
(or \"bottom\"
, or \"down\"
)How far to move the element in pixels
\ntrue for the default animation or a standard Element\nanimation config object
\nSets 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).
X value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nTrue for the default animation, or a standard Element\nanimation config object
\nthis
\nReturns 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.
\nGets the next sibling, skipping text nodes
\nFind the next sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The next sibling or null
\nAppends an event handler to this element.
\nThe name of event to handle.
\n\nThe handler function the event invokes. This function is passed the following parameters:
\n\n\n\n\nevt : EventObject
\n\nThe EventObject describing the event.
el : HtmlElement
\n\nThe DOM element which was the target of the event. Note that this may be filtered by using the delegate option.
o : Object
\n\nThe options object from the call that setup the listener.
The scope (this reference) in which the handler function is executed. If\nomitted, defaults to this Element.
\n\nAn object containing handler configuration properties. This may contain any of\nthe following properties:
\n\n\n\n\nscope Object :
\n\nThe scope (this reference) in which the handler function is executed. If omitted, defaults to this\nElement.
delegate String:
\n\nA simple selector to filter the target or look for a descendant of the target. See below for additional details.
stopEvent Boolean:
\n\nTrue to stop the event. That is stop propagation, and prevent the default action.
preventDefault Boolean:
\n\nTrue to prevent the default action
stopPropagation Boolean:
\n\nTrue to prevent event propagation
normalized Boolean:
\n\nFalse to pass a browser event to the handler function instead of an Ext.EventObject
target Ext.dom.Element:
\n\nOnly call the handler if the event was fired on the target Element, not if the event was bubbled up from a\nchild node.
delay Number:
\n\nThe number of milliseconds to delay the invocation of the handler after the event fires.
single Boolean:
\n\nTrue to add a handler to handle just the next firing of the event, and then remove itself.
buffer Number:
\n\nCauses 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.
Combining Options
\n\n\n\n\nUsing the options argument, it is possible to combine different types of listeners:
\n\n\n\n\nA 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\nCode:
\n\n\n\n\nel.on('click', this.onClick, this, {\n single: true,\n delay: 100,\n stopEvent : true,\n forumId: 4\n});\n
\n\n\n\n\nAttaching multiple handlers in 1 call
\n\n\n\n\nThe 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\nCode:
\n\n\n\n\nel.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\nOr a shorthand syntax:
\n\n\n\n\nCode:
\n\n\n\n\nel.on({\n 'click' : this.onClick,\n 'mouseover' : this.onMouseOver,\n 'mouseout' : this.onMouseOut,\n scope: this\n});\n
\n\n\n\n\ndelegate
\n\n\n\n\nThis 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\nthis
\n\nGets the parent node for this element, optionally chaining up trying to match a selector
\nFind a parent node that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The parent node or null
\nCreates a pause before any subsequent queued effects begin. If there are no effects queued after the pause it will\nhave no effect. Usage:
\n\nel.pause(1);\n
\n This method has been deprecated since 4.0
\nUse the delay
config to animate instead.
The length of time to pause (in seconds)
\nThe Element
\nInitializes 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.
\nGets the previous sibling, skipping text nodes
\nFind the previous sibling that matches the passed simple selector
\nTrue to return a raw dom node instead of an Ext.dom.Element
\nDefaults to: false
The previous sibling or null
\nFades 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
\nObject literal with any of the Fx config options
\nThe Element
\nRecursively removes all previous added listeners from this element and its children
\nthis
\nSelects child nodes based on the passed CSS selector (the selector should not contain an id).
\nThe CSS selector
\nAn array of the matched nodes
\nAdds one or more CSS classes to this element and removes the same class(es) from all siblings.
\nthis
\nCreate 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).
\nThe type of event to relay
\nAny object that extends Ext.util.Observable that will provide the context\nfor firing the relayed event
\nRemoves this element's dom reference. Note that event and cache removal is handled at Ext.removeNode
\nShorthand for un.
\n\nRemoves an event handler from this element.
\n\nNote: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.
\n\nExample:
\n\nel.un('click', this.handlerFn);\n// or\nel.removeListener('click', this.handlerFn);\n
\nThe name of the event from which to remove the handler.
\n\nThe handler function to remove. This must be a reference to the function passed into the\non call.
\n\nIf a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.
\n\nthis
\n\nReplaces the passed element with this element
\nThe element to replace.\nThe id of the node, a DOM Node or an existing Element.
\nThis element
\nReplaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.
\nthis
\nReplaces this element with the passed element
\nThe new element (id of the node, a DOM Node\nor an existing Element) or a DomHelper config of an element to create
\nThis element
\nAnimates 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 This method has been deprecated since 4.0
\nJust use animate instead.
\n\nThe new width (pass undefined to keep the original width)
\nThe new height (pass undefined to keep the original height)
\nObject literal with any of the Fx config options
\nThe Element
\nScrolls this element the specified direction. Does bounds checking to make sure the scroll is\nwithin this element's scrollable range.
\nPossible values are:
\n\n\"l\"
(or \"left\"
)\"r\"
(or \"right\"
)\"t\"
(or \"top\"
, or \"up\"
)\"b\"
(or \"bottom\"
, or \"down\"
)How far to scroll the element in pixels
\ntrue for the default animation or a standard Element\nanimation config object
\nReturns true if a scroll was triggered or false if the element\nwas scrolled as far as it could go.
\nScrolls this element by the passed delta values, optionally animating.
\n\nAll 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
\nEither the x delta, an Array specifying x and y deltas or\nan object with \"x\" and \"y\" properties.
\nEither the y delta, or an animate flag or config object.
\nAnimate flag/config object if the delta values were passed separately.
\nthis
\nScrolls this element into view within the passed container.
\nThe container element\nto scroll. Should be a string (id), dom node, or Ext.Element.
\nDefaults to: document.body
False to disable horizontal scroll.
\nDefaults to: true
true for the default animation or a standard Element\nanimation config object
\nthis
\nScrolls 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.
\nEither \"left\" for scrollLeft values or \"top\" for scrollTop values.
\nThe new scroll value
\ntrue for the default animation or a standard Element\nanimation config object
\nthis
\nCreates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).
\nThe CSS selector
\nTrue to create a unique Ext.Element for each element. Defaults to a shared flyweight object.
\nThe composite element
\nSets the passed attributes as attributes of this element (a style attribute can be a string, object or function)
\nThe object with the attributes
\nfalse to override the default setAttribute to use expandos.
\nDefaults to: true
this
\nSets the element's CSS bottom style.
\nThe bottom CSS property value
\nthis
\nSets the element's position and size in one shot. If animation is true then width, height,\nx and y will be animated concurrently.
\nX value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nThe new width. This may be one of:
\n\nThe new height. This may be one of:
\n\ntrue for the default animation or a standard Element\nanimation config object
\nthis
\nSets 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.
\nThe box to fill {x, y, width, height}
\nWhether to adjust for box-model issues automatically
\ntrue for the default animation or a standard\nElement animation config object
\nthis
\nSets the CSS display property. Uses originalDisplay if the specified value is a boolean true.
\nBoolean value to display the element using its default display, or a string to set the display directly.
\nthis
\nSet 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
\nThe new height. This may be one of:
\n\ntrue for the default animation or a standard Element animation config object
\nthis
\nSets the element's left position directly using CSS style (instead of setX).
\nThe left CSS property value
\nthis
\nSets 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).
X value for new position (coordinates are page-based)
\nY value for new position (coordinates are page-based)
\nTrue for the default animation, or a standard Element\nanimation config object
\nthis
\nSet the opacity of the element
\nThe new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
\na standard Element animation config object or true
for\nthe default animation ({duration: 350, easing: 'easeIn'}
)
this
\nSet positioning with an object returned by getPositioning.
\nthis
\nSets the element's position and size the specified region. If animation is true then width, height,\nx and y will be animated concurrently.
\nThe region to fill
\ntrue for the default animation or a standard Element\nanimation config object
\nthis
\nSets the element's CSS right style.
\nThe right CSS property value
\nthis
\nSet the size of this Element. If animation is true, both width and height will be animated concurrently.
\nThe new width. This may be one of:
\n\n{width: widthValue, height: heightValue}
.The new height. This may be one of:
\n\ntrue for the default animation or a standard Element animation config object
\nthis
\nWrapper for setting style properties, also takes single object parameter of multiple styles.
\nThe style property to be set, or an object of multiple styles.
\nThe value to apply to the given property, or null if an object was passed.
\nthis
\nSets the element's top position directly using CSS style (instead of setY).
\nThe top CSS property value
\nthis
\nUse this to change the visibility mode between VISIBILITY, DISPLAY, OFFSETS or ASCLASS.
\nSets 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.
\nWhether the element is visible
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nOverrides: Ext.dom.AbstractElement.setVisible
Set the width of this Element.
\nThe new width. This may be one of:
\n\ntrue for the default animation or a standard Element animation config object
\nthis
\nSets 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).
\nX position of the element
\nTrue for the default animation, or a standard Element\nanimation config object
\nthis
\nSets 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).
Contains X & Y [x, y] values for new position (coordinates are page-based)
\nTrue for the default animation, or a standard Element\nanimation config object
\nthis
\nOverrides: Ext.dom.AbstractElement.setXY
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).
\nY position of the element
\nTrue for the default animation, or a standard Element\nanimation config object
\nthis
\nAnimates 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 This method has been deprecated since 4.0
\nJust use animate instead.
\n\nObject literal with any of the Fx config options
\nThe Element
\nShow this element - Uses display mode to determine whether to use \"display\" or \"visibility\". See setVisible.
\ntrue for the default animation or a standard Element animation config object
\nthis
\nOverrides: Ext.dom.AbstractElement.show
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
\nOne of the valid Fx anchor positions (defaults to top: 't')
\nObject literal with any of the Fx config options
\nSet 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.
The Element
\nSlides 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
\nOne of the valid Fx anchor positions (defaults to top: 't')
\nObject literal with any of the Fx config options
\nThe Element
\nGet 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
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
\nStops the specified event(s) from bubbling and optionally prevents the default action
\nan event / array of events to stop from bubbling
\ntrue to prevent the default action too
\nthis
\nBlinks 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
\nObject literal with any of the Fx config options
\nThe Element
\n.\nCurrently used for updating grid cells without modifying DOM structure
\n\nSynchronizes content of this Element with the content of the passed element.
\n\nStyle 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.
\nToggles the element's visibility or display, depending on visibility mode.
\nTrue for the default animation, or a standard Element animation config object
\nthis
\nToggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).
\nThe CSS class to toggle
\nthis
\nTranslates the passed page coordinates into left/top css values for this element
\nThe page x or an array containing [x, y]
\nThe page y, required if x is not an array
\nAn object with left and top properties. e.g. {left: (value), top: (value)}
\nRemoves an event handler from this element.
\n\nNote: if a scope was explicitly specified when adding the listener,\nthe same scope must be specified here.
\n\nExample:
\n\nel.un('click', this.handlerFn);\n// or\nel.removeListener('click', this.handlerFn);\n
\nThe name of the event from which to remove the handler.
\n\nThe handler function to remove. This must be a reference to the function passed into the\non call.
\n\nIf a scope (this reference) was specified when the listener was added, then this must\nrefer to the same object.
\n\nthis
\n\nReturn clipping (overflow) to original clipping before clip was called
\nthis
\nHides a previously applied mask.
\nOverrides: Ext.dom.AbstractElement.unmask
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.
\nThe simple selector to test
\nThe 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)
\nThe matching DOM node (or null if no match was found)
\nUpdates the innerHTML of this element, optionally searching for and processing scripts.
\nThe new HTML
\nTrue to look for and process scripts (defaults to false)
\nFor async script loading you can be notified when the update completes
\nthis
\nOverrides: Ext.dom.AbstractElement.update
Creates and wraps this element with another element
\nDomHelper element config object for the wrapper element or null for an empty div
\nTrue to return the raw DOM element instead of Ext.dom.AbstractElement
\nDefaults to: false
A DomQuery selector to select a descendant node within the created element to use as the wrapping element.
\nThe newly created wrapper element
\nAdd methods / properties to the prototype of this class.
\n\nExt.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
\nAdd / override static properties of this class.
\n\nExt.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
\nthis
\nBorrow another class' members to the prototype of this class.
\n\nExt.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
\nThe class to borrow members from
\nThe names of the members to borrow
\nthis
\nCreate a new instance of this Class.
\n\nExt.define('My.cool.Class', {\n ...\n});\n\nMy.cool.Class.create({\n someConfig: true\n});\n
\n\nAll parameters are passed to the constructor of the class.
\nthe created instance.
\nCreate aliases for existing prototype methods. Example:
\n\nExt.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
\nThe new method name, or an object to set multiple aliases. See\nflexSetter
\nThe original method name
\nRetrieves Ext.dom.Element objects. Ext.get is alias for Ext.dom.Element.get.
\n\nThis 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\nUses simple caching to consistently return the same object. Automatically fixes if an object was recreated with\nthe same id via AJAX or DOM.
\nThe id of the node, a DOM Node or an existing Element.
\nThe Element object (or null if no matching element was found)
\nGet the current class' name in string format.
\n\nExt.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
\nclassName
\nAdds members to class.
\nThis method has been deprecated since 4.1
\nUse addMembers instead.
\n\nReturns an array of unique class names based upon the input strings, or string arrays.
\n\n\nThe number of parameters is unlimited.
\n\n\nExample
\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
A string of class names, or an array of class names.
\nA string of class names, or an array of class names.
\nAn array of strings representing remaining unique, merged class names. If class names were added to the first list, the changed
property will be true
.
Override members of this class. Overridden methods can be invoked via\ncallParent.
\n\nExt.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\nAs of 4.1, direct use of this method is deprecated. Use Ext.define\ninstead:
\n\nExt.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\nThe 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).
\nThis method has been deprecated since 4.1.0
\nUse Ext.define instead
\n\nThe properties to add to this class. This should be\nspecified as an object literal containing one or more properties.
\nthis class
\nReturns an array of unique class names deom the first parameter with all class names\nfrom the second parameter removed.
\n\n\nExample
\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
A string of class names, or an array of class names.
\nA string of class names, or an array of class names to remove from existingClsList
.
An array of strings representing remaining class names. If class names were removed, the changed
property will be true
.
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.
\nThe CSS selector or an array of elements
\ntrue to create a unique Ext.Element for each element (defaults to a shared flyweight object)
\nThe root element of the query or id of the root
\nWhere supported. Fires when an element is activated, for instance, through a mouse click or a keypress.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when an attribute has been modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when the character data has been modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Similar to HTML focus event, but can be applied to any focusable element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Similar to HTML blur event, but can be applied to any focusable element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a node has been added as a child of another node.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a node is being inserted into a document.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a descendant node of the element is removed.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when a node is being removed from a document.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nWhere supported. Fires when the subtree is modified.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an object/image is stopped from loading before completely loaded.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an element loses focus either via the pointing device or by tabbing navigation.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a control loses the input focus and its value has been modified since gaining focus.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouse click is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouse double click is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an object/image/frame cannot be loaded properly.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when an element receives focus either via the pointing device or by tab navigation.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a keydown is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a keypress is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a keyup is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when the user agent finishes loading all content within the element. Only supported by window, frames,\nobjects and images.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mousedown is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when the mouse enters the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when the mouse leaves the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mousemove is detected with the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouseout is detected with the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouseover is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a mouseup is detected within the element.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a form is reset.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a document view is resized.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a document view is scrolled.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a user selects some text in a text field, including input and textarea.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires when a form is submitted.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\nFires 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.
\nThe Ext.EventObject encapsulating the DOM event.
\nThe target of the event.
\nThe options object passed to Ext.util.Observable.addListener.
\n\n\n\n