Package: | Ext |
Defined In: | Element.traversal.js |
Class: | Element |
Extends: | Object |
Encapsulates a DOM element, adding simple DOM manipulation facilities, normalizing for browser differences.
All instances of this class inherit the methods of Ext.Fx making visual effects easily available to all DOM elements.
Note that the events documented in this class are not Ext events, they encapsulate browser events. To access the underlying browser event, see Ext.EventObject.browserEvent. Some older browsers may not support the full range of events. Which events are supported is beyond the control of ExtJs.
Usage:// by id
var el = Ext.get("my-div");
// by DOM element reference
var el = Ext.get(myDivElement);
AnimationsWhen an element is manipulated, by default there is no animation.
var el = Ext.get("my-div");
// no animation
el.setWidth(100);
Many of the functions for manipulating an element have an optional "animate" parameter. This parameter can be specified as boolean (true) for default animation effects.
// default animation
el.setWidth(100, true);
To configure the effects, an object literal with animation options to use as the Element animation configuration object can also be specified. Note that the supported Element animation configuration options are a subset of the Ext.Fx animation options specific to Fx effects. The supported Element animation configuration options are:
Option Default Description --------- -------- --------------------------------------------- duration .35 The duration of the animation in seconds easing easeOut The easing method callback none A function to execute when the anim completes scope this The scope (this) of the callback function
// Element animation options object
var opt = {
duration: 1,
easing: 'elasticIn',
callback: this.foo,
scope: this
};
// animation with some options set
el.setWidth(100, opt);
The Element animation object being used for the animation will be set on the options object as "anim", which allows you to stop or manipulate the animation. Here is an example:
// using the "anim" property to get the Anim object
if(opt.anim.isAnimated()){
opt.anim.stop();
}
Also see the animate method for another animation technique.
Composite (Collections of) Elements
For working with collections of Elements, see Ext.CompositeElement
Property | Defined By | |
---|---|---|
DISPLAY : Number Visibility mode constant for use with setVisibilityMode. Use display to hide element | Element | |
OFFSETS : Number Visibility mode constant for use with setVisibilityMode. Use offsets to hide element | Element | |
VISIBILITY : Number Visibility mode constant for use with setVisibilityMode. Use visibility to hide element | Element | |
defaultUnit : String The default unit to append to CSS values where a unit isn't provided (defaults to px). | Element | |
dom : HTMLElement The DOM element | Element | |
id : String The DOM element ID | Element |
Method | Defined By | |
---|---|---|
Element( String/HTMLElement element , [Boolean forceNew ] )
Create a new Element directly. Create a new Element directly. Parameters:
| Element | |
addCls( String/Array className )
:
Ext.ElementAdds one or more CSS classes to the element. Duplicate classes are automatically filtered out. Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out. Parameters:
| Element | |
addListener( String eventName , Function fn , [Object scope ], [Object options ] )
:
Ext.ElementAppends an event handler to this element. The shorthand version on is equivalent. Appends an event handler to this element. The shorthand version on is equivalent. Parameters:
| Element | |
alignTo( Mixed element , String position , [Array offsets ], [Boolean/Object animate ] )
:
Ext.ElementAligns this element with another element relative to the specified anchor points. If the other element is the
documen... Aligns this element with another element relative to the specified anchor points. If the other element is the
document it aligns it to the viewport.
The position parameter is optional, and can be specified in any one of the following formats:
Value Description ----- ----------------------------- tl The top left corner (default) t The center of the top edge tr The top right corner l The center of the left edge c In the center of the element r The center of the right edge bl The bottom left corner b The center of the bottom edge br The bottom right cornerExample Usage:
Parameters:
| Element | |
anchorTo( Mixed element , String position , [Array offsets ], [Boolean/Object animate ], [Boolean/Number monitorScroll ], Function callback )
:
Ext.ElementAnchors an element to another element and realigns it when the window is resized. Anchors an element to another element and realigns it when the window is resized. Parameters:
| Element | |
appendChild( String/HTMLElement/Array/Element/CompositeElement el )
:
Ext.ElementAppends the passed element(s) to this element Appends the passed element(s) to this element Parameters:
| Element | |
appendTo( Mixed el )
:
Ext.ElementAppends this element to the passed element Appends this element to the passed element Parameters:
| Element | |
applyStyles( String/HTMLElement el , String/Object/Function styles )
:
voidApplies a style specification to an element. Applies a style specification to an element. Parameters:
| Element | |
center( [Mixed centerIn ] )
:
void// * Centers the Element in either the viewport, or another Element.
// * // * Centers the Element in either the viewport, or another Element.
// * Parameters:
| Element | |
child( String selector , [Boolean returnDom ] )
:
HTMLElement/Ext.ElementSelects a single *direct* child based on the passed CSS selector (the selector should not contain an id). Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id). Parameters:
| Element | |
contains( HTMLElement/String el )
:
BooleanReturns true if this element is an ancestor of the passed element Returns true if this element is an ancestor of the passed element Parameters:
| Element | |
createChild( Object config , [HTMLElement insertBefore ], [Boolean returnDom ] )
:
Ext.ElementCreates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e... Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element. Parameters:
| Element | |
cssTransform( Ext.Element/Element el , Object transforms )
:
voidTransform an element using CSS 3 Transform an element using CSS 3 Parameters:
| Element | |
cssTranslate( Ext.Element/Element el , Ext.util.Offset/Object offset )
:
voidTranslate an element using CSS 3 in 2D. This is supposed to be faster than cssTransform when we only need to translat... Translate an element using CSS 3 in 2D. This is supposed to be faster than cssTransform when we only need to translate
an element without reserving its original matrix Parameters:
| Element | |
down( String selector , [Boolean returnDom ] )
:
HTMLElement/Ext.ElementSelects a single child at any depth below this element based on the passed CSS selector (the selector should not cont... Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id). Parameters:
| Element | |
findParent( String selector , [Number/Mixed maxDepth ], [Boolean returnEl ] )
:
HTMLElementLooks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:fi... Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) Parameters:
| Element | |
findParentNode( String selector , [Number/Mixed maxDepth ], [Boolean returnEl ] )
:
HTMLElementLooks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) Parameters:
| Element | |
first( [String selector ], [Boolean returnDom ] )
:
Ext.Element/HTMLElementGets the first child, skipping text nodes Gets the first child, skipping text nodes Parameters:
| Element | |
fly( String/HTMLElement el , [String named ] )
:
ElementGets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to t... Gets the globally shared flyweight Element, with the passed node as the active element. Do not store a reference to this element - the dom node can be overwritten by other code. Shorthand of Ext.Element.fly Use this to make one-time references to DOM elements which are not going to be accessed again either by application code, or by Ext's classes. If accessing an element which will be processed regularly, then Ext.get will be more appropriate to take advantage of the caching provided by the Ext.Element class. Parameters:
| Element | |
fromPoint( Number x , Number x )
:
StringReturns the top Element that is located at the passed coordinates
Function description Returns the top Element that is located at the passed coordinates
Function description Parameters:
| Element | |
get( Mixed el )
:
Element<static> Retrieves Ext.Element objects.
This method does not retrieve Components. This method
retrieves Ext.Element objects wh... <static> Retrieves Ext.Element objects.
This method does not retrieve Components. This method retrieves Ext.Element objects which encapsulate DOM elements. To retrieve a Component by its ID, use Ext.ComponentMgr.get. Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM. Parameters:
| Element | |
getAlignToXY( Mixed element , String position , [Array offsets ] )
:
ArrayGets the x,y coordinates to align this element with another element. See alignTo for more info on the
supported posit... Gets the x,y coordinates to align this element with another element. See alignTo for more info on the
supported position values. Parameters:
| Element | |
getAnchorXY( [String anchor ], [Object size ] )
:
ArrayGets the x,y coordinates specified by the anchor position on the element. Gets the x,y coordinates specified by the anchor position on the element. Parameters:
| Element | |
getAttribute( String name , [String namespace ] )
:
StringReturns the value of an attribute from the element's underlying DOM node. Returns the value of an attribute from the element's underlying DOM node. Parameters:
| Element | |
getBorderWidth( String side )
:
NumberGets the width of the border(s) for the specified side(s) Gets the width of the border(s) for the specified side(s) Parameters:
| Element | |
getBottom( Boolean local )
:
NumberGets the bottom Y coordinate of the element (element Y position + element height) Gets the bottom Y coordinate of the element (element Y position + element height) Parameters:
| Element | |
getBox( [Boolean contentBox ], [Boolean local ] )
:
ObjectReturn an object defining the area of this Element which can be passed to setBox to
set another Element's size/locati... Return an object defining the area of this Element which can be passed to setBox to
set another Element's size/location to match this element. Parameters:
| Element | |
getCenterXY()
:
Array // * Calculates the x, y to center this element on the screen
// * // * Calculates the x, y to center this element on the screen
// * Parameters:
| Element | |
getComputedTransformOffset( Ext.Element/Element el )
:
Ext.util.OffsetReturns the calculated CSS 2D transform offset values (translate x and y) Returns the calculated CSS 2D transform offset values (translate x and y) Parameters:
| Element | |
getDocumentHeight()
:
void Retrieves the document height Retrieves the document height Parameters:
| Element | |
getDocumentWidth()
:
void Retrieves the document width Retrieves the document width Parameters:
| Element | |
getHTML()
:
void Returns the innerHTML of an Element or an empty string if the element's
dom no longer exists. Returns the innerHTML of an Element or an empty string if the element's
dom no longer exists. Parameters:
| Element | |
getHeight( [Boolean contentHeight ] )
:
NumberReturns the offset height of the element Returns the offset height of the element Parameters:
| Element | |
getLeft( Boolean local )
:
NumberGets the left X coordinate Gets the left X coordinate Parameters:
| Element | |
getMargin( String side )
:
NumberGets the size of the margins(s) for the specified side(s) Gets the size of the margins(s) for the specified side(s) Parameters:
| Element | |
getOffsetsTo( Mixed element )
:
ArrayReturns the offsets of this element from the passed element. Both element must be part of the DOM tree and not have d... Returns the offsets of this element from the passed element. Both element must be part of the DOM tree and not have display:none to have page coordinates. Parameters:
| Element | |
getOrientation()
:
void Retrieves the current orientation of the window. This is calculated by
determing if the height is greater than the wi... Retrieves the current orientation of the window. This is calculated by
determing if the height is greater than the width. Parameters:
| Element | |
getOuterHeight()
:
void Retrieves the height of the element account for the top and bottom
margins. Retrieves the height of the element account for the top and bottom
margins. Parameters:
| Element | |
getOuterWidth()
:
void Retrieves the width of the element accounting for the left and right
margins. Retrieves the width of the element accounting for the left and right
margins. Parameters:
| Element | |
getPadding( String side )
:
NumberGets the size of the padding(s) for the specified side(s) Gets the size of the padding(s) for the specified side(s) Parameters:
| Element | |
getPageBox( Boolean asRegion(optional) )
:
ObjectReturn an object defining the area of this Element which can be passed to setBox to
set another Element's size/locati... Return an object defining the area of this Element which can be passed to setBox to
set another Element's size/location to match this element. Parameters:
| Element | |
getRight( Boolean local )
:
NumberGets the right X coordinate of the element (element X position + element width) Gets the right X coordinate of the element (element X position + element width) Parameters:
| Element | |
getScrollParent()
:
Ext.util.Scroller/null Gets the Scroller instance of the first parent that has one. Gets the Scroller instance of the first parent that has one. Parameters:
| Element | |
getSize( [Boolean contentSize ] )
:
ObjectReturns the size of the element. Returns the size of the element. Parameters:
| Element | |
getStyle( String property )
:
StringNormalizes currentStyle and computedStyle. Normalizes currentStyle and computedStyle. Parameters:
| Element | |
getTop( Boolean local )
:
NumberGets the top Y coordinate Gets the top Y coordinate Parameters:
| Element | |
getValue( Boolean asNumber )
:
String/NumberReturns the value of the "value" attribute Returns the value of the "value" attribute Parameters:
| Element | |
getViewSize()
:
void Returns the dimensions of the element available to lay content out in.
If the element (or any ancestor element) has C... Returns the dimensions of the element available to lay content out in.
If the element (or any ancestor element) has CSS style Parameters:
| Element | |
getViewportHeight()
:
void Retrieves the viewport height of the window. Retrieves the viewport height of the window. Parameters:
| Element | |
getViewportWidth()
:
void Retrieves the viewport width of the window. Retrieves the viewport width of the window. Parameters:
| Element | |
getWidth( [Boolean contentWidth ] )
:
NumberReturns the offset width of the element Returns the offset width of the element Parameters:
| Element | |
getX()
:
Number Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have p... Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). Parameters:
| Element | |
getXY()
:
Array Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have pag... Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). Parameters:
| Element | |
getY()
:
Number Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have p... Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). Parameters:
| Element | |
hasCls( String className )
:
BooleanChecks if the specified CSS class exists on this element's DOM node. Checks if the specified CSS class exists on this element's DOM node. Parameters:
| Element | |
hide( [Boolean/Object animate ] )
:
Ext.ElementHide this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. Hide this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. Parameters:
| Element | |
insertAfter( Mixed el )
:
Ext.ElementInserts this element after the passed element in the DOM Inserts this element after the passed element in the DOM Parameters:
| Element | |
insertBefore( Mixed el )
:
Ext.ElementInserts this element before the passed element in the DOM Inserts this element before the passed element in the DOM Parameters:
| Element | |
insertFirst( Mixed/Object el )
:
Ext.ElementInserts (or creates) an element (or DomHelper config) as the first child of this element Inserts (or creates) an element (or DomHelper config) as the first child of this element Parameters:
| Element | |
insertHtml( String where , String html , [Boolean returnEl ] )
:
HTMLElement/Ext.ElementInserts an html fragment into this element Inserts an html fragment into this element Parameters:
| Element | |
insertSibling( Mixed/Object/Array el , [String where ], [Boolean returnDom ] )
:
Ext.ElementInserts (or creates) the passed element (or DomHelper config) as a sibling of this element Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element Parameters:
| Element | |
is( String selector )
:
BooleanReturns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child) Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child) Parameters:
| Element | |
isDescendent( Mixed element )
:
voidDetermines if this element is a descendent of the passed in Element. Determines if this element is a descendent of the passed in Element. Parameters:
| Element | |
isHorizontal()
:
Boolean Method to determine whether this Sortable is currently sorting. Method to determine whether this Sortable is currently sorting. Parameters:
| Element | |
isVertical()
:
Boolean Method to determine whether this Sortable is currently disabled. Method to determine whether this Sortable is currently disabled. Parameters:
| Element | |
last( [String selector ], [Boolean returnDom ] )
:
Ext.Element/HTMLElementGets the last child, skipping text nodes Gets the last child, skipping text nodes Parameters:
| Element | |
mask( [String msg ], [String msgCls ], [Boolean transparent ] )
:
ElementPuts a mask over this element to disable user interaction.
This method can only be applied to elements which accept c... Puts a mask over this element to disable user interaction.
This method can only be applied to elements which accept child nodes. Parameters:
| Element | |
next( [String selector ], [Boolean returnDom ] )
:
Ext.Element/HTMLElementGets the next sibling, skipping text nodes Gets the next sibling, skipping text nodes Parameters:
| Element | |
normalize()
:
void Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax.
For example:
border-width -> borde... Normalizes CSS property keys from dash delimited to camel case JavaScript Syntax.
For example:
Parameters:
| Element | |
parent( [String selector ], [Boolean returnDom ] )
:
Ext.Element/HTMLElementGets the parent node for this element, optionally chaining up trying to match a selector Gets the parent node for this element, optionally chaining up trying to match a selector Parameters:
| Element | |
parseBox( Number|String box )
:
ObjectParses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
(e.g. 10, ... Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
(e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result) Parameters:
| Element | |
prev( [String selector ], [Boolean returnDom ] )
:
Ext.Element/HTMLElementGets the previous sibling, skipping text nodes Gets the previous sibling, skipping text nodes Parameters:
| Element | |
purgeAllListeners()
:
Ext.Element Recursively removes all previous added listeners from this element and its children Recursively removes all previous added listeners from this element and its children Parameters:
| Element | |
query( String selector )
:
ArraySelects child nodes based on the passed CSS selector (the selector should not contain an id). Selects child nodes based on the passed CSS selector (the selector should not contain an id). Parameters:
| Element | |
radioCls( String/Array className )
:
Ext.ElementAdds one or more CSS classes to this element and removes the same class(es) from all siblings. Adds one or more CSS classes to this element and removes the same class(es) from all siblings. Parameters:
| Element | |
remove()
:
void Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode Parameters:
| Element | |
removeAllListeners()
:
Ext.Element Removes all previous added listeners from this element Removes all previous added listeners from this element Parameters:
| Element | |
removeAnchor()
:
Ext.Element Remove any anchor to this element. See anchorTo. Remove any anchor to this element. See anchorTo. Parameters:
| Element | |
removeCls( String/Array className )
:
Ext.ElementRemoves one or more CSS classes from the element. Removes one or more CSS classes from the element. Parameters:
| Element | |
removeListener( String eventName , Function fn , Object scope )
:
Ext.ElementRemoves an event handler from this element. The shorthand version un is equivalent.
Note: if a scope was explicitly ... Removes an event handler from this element. The shorthand version un is equivalent.
Note: if a scope was explicitly specified when adding the
listener, the same scope must be specified here.
Example:
Parameters:
| Element | |
repaint()
:
Ext.Element Forces the browser to repaint this element Forces the browser to repaint this element Parameters:
| Element | |
replace( Mixed el )
:
Ext.ElementReplaces the passed element with this element Replaces the passed element with this element Parameters:
| Element | |
replaceCls( String oldClassName , String newClassName )
:
Ext.ElementReplaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added. Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added. Parameters:
| Element | |
replaceWith( Mixed/Object el )
:
Ext.ElementReplaces this element with the passed element Replaces this element with the passed element Parameters:
| Element | |
select( String/Array selector , [HTMLElement/String root ] )
:
CompositeElementSelects elements based on the passed CSS selector to enable Element methods
to be applied to many related elements in... Selects elements based on the passed CSS selector to enable Element methods
to be applied to many related elements in one statement through the returned CompositeElement or
CompositeElement object. Parameters:
| Element | |
set( Object o , [Boolean useSet ] )
:
Ext.ElementSets the passed attributes as attributes of this element (a style attribute can be a string, object or function) Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) Parameters:
| Element | |
setBottom( String bottom )
:
Ext.ElementSets the element's CSS bottom style. Sets the element's CSS bottom style. Parameters:
| Element | |
setBox( Object box )
:
Ext.ElementSets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x an... Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x and y will be animated concurrently. Parameters:
| Element | |
setHTML( String html )
:
Ext.ElementSet the innerHTML of this element Set the innerHTML of this element Parameters:
| Element | |
setHeight( Mixed height )
:
Ext.ElementSet the height of this Element.
// change the height to 200px and animate with default configuration
Ext.fly(... Set the height of this Element.
Parameters:
| Element | |
setLeft( String left )
:
Ext.ElementSets the element's left position directly using CSS style (instead of setX). Sets the element's left position directly using CSS style (instead of setX). Parameters:
| Element | |
setRight( String right )
:
Ext.ElementSets the element's CSS right style. Sets the element's CSS right style. Parameters:
| Element | |
setSize( Mixed width , Mixed height , [Boolean/Object animate ] )
:
Ext.ElementSet the size of this Element. If animation is true, both width and height will be animated concurrently. Set the size of this Element. If animation is true, both width and height will be animated concurrently. Parameters:
| Element | |
setStyle( String/Object property , [String value ] )
:
Ext.ElementWrapper for setting style properties, also takes single object parameter of multiple styles. Wrapper for setting style properties, also takes single object parameter of multiple styles. Parameters:
| Element | |
setTop( String top )
:
Ext.ElementSets the element's top position directly using CSS style (instead of setY). Sets the element's top position directly using CSS style (instead of setY). Parameters:
| Element | |
setTopLeft( String top , String left )
:
voidSets the element's top and left positions directly using CSS style (instead of setXY) Sets the element's top and left positions directly using CSS style (instead of setXY) Parameters:
| Element | |
setVisible( Boolean visible , [Boolean/Object animate ] )
:
Ext.ElementSets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use
the di... Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use
the display property to hide the element, otherwise it uses visibility. The default is to hide and show using the visibility property. Parameters:
| Element | |
setWidth( Mixed width )
:
Ext.ElementSet the width of this Element. Set the width of this Element. Parameters:
| Element | |
setX( Number The )
:
Ext.ElementSets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coor... Sets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). Parameters:
| Element | |
setXY( Array pos )
:
Ext.ElementSets the position of the element in page coordinates, regardless of how the element is positioned.
The element must b... Sets the position of the element in page coordinates, regardless of how the element is positioned.
The element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). Parameters:
| Element | |
setY( Number The , [Boolean/Object animate ] )
:
Ext.ElementSets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coor... Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coordinates (display:none or elements not appended return false). Parameters:
| Element | |
show( [Boolean/Object animate ] )
:
Ext.ElementShow this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. Show this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. Parameters:
| Element | |
toggleCls( String className )
:
Ext.ElementToggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). Parameters:
| Element | |
translatePoints( Number/Array x , [Number y ] )
:
ObjectTranslates the passed page coordinates into left/top css values for this element Translates the passed page coordinates into left/top css values for this element Parameters:
| Element | |
unitizeBox( Number|String box )
:
StringParses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
(e.g. 10, ... Parses a number or string representing margin sizes into an object. Supports CSS-style margin declarations
(e.g. 10, "10", "10 10", "10 10 10" and "10 10 10 10" are all valid options and would return the same result) Parameters:
| Element | |
unmask()
:
void Removes a previously applied mask. Removes a previously applied mask. Parameters:
| Element | |
up( String selector , [Number/Mixed maxDepth ] )
:
Ext.ElementWalks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first... Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first-child).
This is a shortcut for findParentNode() that always returns an Ext.Element. Parameters:
| Element | |
wrap( [Object config ], [Boolean returnDom ] )
:
HTMLElement/ElementCreates and wraps this element with another element Creates and wraps this element with another element Parameters:
| Element |