X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/c930e9176a5a85509c5b0230e2bff5c22a591432..c8256059947f3aa8f5b0a9a2acf55e2142bb4742:/docs/output/Ext.Layer.html diff --git a/docs/output/Ext.Layer.html b/docs/output/Ext.Layer.html index c91aa82b..a9bc8455 100644 --- a/docs/output/Ext.Layer.html +++ b/docs/output/Ext.Layer.html @@ -1,4 +1,4 @@ -
Element Layer
Package: | Ext |
Defined In: | Layer.js |
Class: | Layer |
Extends: | Element |
Element Layer
Package: | Ext |
Defined In: | Layer.js |
Class: | Layer |
Extends: | Element |
Config Options | Defined By | ||
---|---|---|---|
cls : String CSS class to add to the element | Layer | ||
constrain : Boolean False to disable constrain to viewport (defaults to true) | Layer | ||
dh : Object DomHelper object config to create element with (defaults to {tag: 'div', cls: 'x-layer'}). | Layer | ||
shadow : String/Boolean True to automatically create an Ext.Shadow, or a string indicating the
shadow's display Ext.Shadow.mode. False to dis... True to automatically create an Ext.Shadow, or a string indicating the
shadow's display Ext.Shadow.mode. False to disable the shadow. (defaults to false) | Layer | ||
shadowOffset : Number Number of pixels to offset the shadow (defaults to 4) | Layer | ||
shim : Boolean False to disable the iframe shim in browsers which need one (defaults to true) | Layer | ||
useDisplay : Boolean Defaults to use css offsets to hide the Layer. Specify true
@@ -13,295 +13,295 @@ to use css style 'display:none;' to hide the Layer. | Sets up event handlers to add and remove a css class when the mouse is over this element Sets up event handlers to add and remove a css class when the mouse is over this element Parameters:
| Element | |
addKeyListener( Number/Array/Object/String key , Function fn , [Object scope ] )
:
- Ext.KeyMapConvenience method for constructing a KeyMap Convenience method for constructing a KeyMap Parameters:
| Element | ||
addKeyMap( Object config )
+ Ext.KeyMapConvenience method for constructing a KeyMap Convenience method for constructing a KeyMap Parameters:
| Element | ||
addKeyMap( Object config )
:
Ext.KeyMapCreates a KeyMap for this element Creates a KeyMap for this element 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
-docume... 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 corner --Example 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 | ||
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 | ||
animate( Object args , [Float duration ], [Function onComplete ], [String easing ], [String animType ] )
:
- Ext.ElementPerform custom animation on this element.
-<ul class="mdetail-params">
-Animation Properties
-The Animation Control O... Perform custom animation on this element.
-
The Animation Control Object enables gradual transitions for any member of an -element's style object that takes a numeric value including but not limited to -these properties:
Each Animation Property is a config object with optional properties: -
* do not specify both to and by for an animation property -The supported animation types:
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/Object/Function styles )
:
- Ext.ElementMore flexible version of setStyle for setting style properties. More flexible version of setStyle for setting style properties. Parameters:
| Element | ||
autoHeight( [Boolean animate ], [Float duration ], [Function onComplete ], [String easing ] )
:
- Ext.ElementMeasures the element's content height and updates height to match. Note: this function uses setTimeout so
-the new he... Measures the element's content height and updates height to match. Note: this function uses setTimeout so
+ Ext.Element Measures the element's content height and updates height to match. Note: this function uses setTimeout so
+the new hei... Measures the element's content height and updates height to match. Note: this function uses setTimeout so
the new height may not be available immediately. Parameters:
| Element | ||
blur()
:
Ext.Element Tries to blur the element. Any exceptions are caught and ignored. Tries to blur the element. Any exceptions are caught and ignored. Parameters:
| Element | ||
boxWrap( [String class ] )
:
- Ext.ElementWraps the specified element with a special 9 element markup/CSS block that renders by default as
-a gray container wi... Wraps the specified element with a special 9 element markup/CSS block that renders by default as -a gray container with a gradient background, rounded corners and a 4-way shadow. -This special markup is used throughout Ext when box wrapping elements (Ext.Button, -Ext.Panel when frame=true, Ext.Window). The markup -is of this form: -
-Example usage: -
Parameters:
| Element | ||
center( [Mixed centerIn ] )
+ Ext.ElementWraps the specified element with a special 9 element markup/CSS block that renders by default as
+a gray container wit... Wraps the specified element with a special 9 element markup/CSS block that renders by default as +a gray container with a gradient background, rounded corners and a 4-way shadow. +This special markup is used throughout Ext when box wrapping elements (Ext.Button, +Ext.Panel when frame=true, Ext.Window). The markup +is of this form: +
+Example usage: +
Parameters:
| Element | ||
center( [Mixed centerIn ] )
:
voidCenters 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 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 | ||
clean( [Boolean forceReclean ] )
:
- voidRemoves worthless text nodes Removes worthless text nodes Parameters:
| Element | ||
clearOpacity()
:
Ext.Element Clears any opacity settings from this element. Required in some cases for IE. Clears any opacity settings from this element. Required in some cases for IE. Parameters:
| Element | ||
clearPositioning( [String value ] )
@@ -312,13 +312,13 @@ need to force a reclean, you can pass true.Returns:Returns true if this element is an ancestor of the passed element Returns true if this element is an ancestor of the passed element 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 | ||
createProxy( String/Object config , [String/HTMLElement renderTo ], [Boolean matchBox ] )
:
Ext.ElementCreates a proxy element of this element Creates a proxy element of this element Parameters:
| Element | ||
createShim()
:
- Ext.Element Creates an iframe shim for this element to keep selects and other windowed objects from
-showing through. Creates an iframe shim for this element to keep selects and other windowed objects from
+ Ext.Element Creates an iframe shim for this element to keep selects and other windowed objects from
+showing through. Creates an iframe shim for this element to keep selects and other windowed objects from
showing through. Parameters:
| Element | ||
down( 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 | ||
enableDisplayMode( [String display ] )
@@ -327,81 +327,92 @@ showing through.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 | ||
focus( [Number defer ] )
:
Ext.ElementTries to focus the element. Any exceptions are caught and ignored. Tries to focus the element. Any exceptions are caught and ignored. 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 posi... 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 ], [Boolean local ], [Object size ] )
+ 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 ], [Boolean local ], [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 | ||
getAttributeNS( String namespace , String name )
:
StringReturns the value of a namespaced attribute from the element's underlying DOM node. Returns the value of a namespaced attribute from the element's underlying DOM node. 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 a box {x, y, width, height} that can be used to set another elements
-size/location to match this element. Return a box {x, y, width, height} that can be used to set another elements
-size/location to match this element. Parameters:
| Element | ||
getCenterXY()
+ Object Return 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 | ||
getColor( String attr , String defaultValue , [String prefix ] )
:
- voidReturn the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values
-are convert to stand... Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values
-are convert to standard 6 digit hex color. Parameters:
| Element | ||
getComputedHeight()
:
- Number Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
-whe... Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
-when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements
+ Number Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
+when... Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders
+when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements
if a height has not been set using CSS. Parameters:
| Element | ||
getComputedWidth()
:
- Number Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
-when n... Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
-when needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements
+ Number Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
+when ne... Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders
+when needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements
if a width has not been set using CSS. Parameters:
| Element | ||
getFrameWidth( String sides )
:
- NumberReturns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
- for more informa... Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
- for more information about the sides. Parameters:
| Element | ||
getHeight( [Boolean contentHeight ] )
+ NumberReturns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
+ for more infor... Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth()
+ for more information about the sides. 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 | ||
getMargins( [String sides ] )
:
- Object/NumberReturns an object with properties top, left, right and bottom representing the margins of this element unless sides i... Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,
+ Object/Number Returns an object with properties top, left, right and bottom representing the margins of this element unless sides i... Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed,
then it returns the calculated width of the sides (see getPadding) 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 | ||
getPadding( String side )
:
- NumberGets the width of the padding(s) for the specified side(s) Gets the width of the padding(s) for the specified side(s) Parameters:
| Element | ||
getPositioning()
:
- Object Gets an object with all CSS positioning properties. Useful along with setPostioning to get
-snapshot before performin... Gets an object with all CSS positioning properties. Useful along with setPostioning to get
+ Object Gets an object with all CSS positioning properties. Useful along with setPostioning to get
+snapshot before performing... Gets an object with all CSS positioning properties. Useful along with setPostioning to get
snapshot before performing an update and then restoring the element. Parameters:
| Element | ||
getRegion()
:
- Region Returns the region of the given element.
-The element must be part of the DOM tree to have a region (display:none or ... Returns the region of the given element.
+ Region Returns the region of the given element.
+The element must be part of the DOM tree to have a region (display:none or e... Returns the region of the given element.
The element must be part of the DOM tree to have a region (display:none or elements not appended return false). 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 | ||
getScroll()
@@ -410,11 +421,17 @@ The element must be part of the DOM tree to have a region (display:none or eleme
:
Object Returns 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 | ||
getStyles( String style1 , String style2 , String etc. )
+ StringNormalizes currentStyle and computedStyle. Normalizes currentStyle and computedStyle. Parameters:
| Element | ||
getStyleSize()
:
- Object Returns an object with properties matching the styles requested.
-For example, el.getStyles('color', 'font-size', 'wi... Returns an object with properties matching the styles requested.
-For example, el.getStyles('color', 'font-size', 'width') might return
+ void Returns the dimensions of the element available to lay content out in.
+getStyleSize utilizes prefers style sizing if ... Returns the dimensions of the element available to lay content out in. +getStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and offsetWidth/clientWidth. +To obtain the size excluding scrollbars, use getViewSize +Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc. Parameters:
| Element | ||
getStyles( String style1 , String style2 , String etc. )
+ :
+ ObjectReturns an object with properties matching the styles requested.
+For example, el.getStyles('color', 'font-size', 'wid... Returns an object with properties matching the styles requested.
+For example, el.getStyles('color', 'font-size', 'width') might return
{'color': '#FFFFFF', 'font-size': '13px', 'width': '100px'}. Parameters:
| Element | ||
getTextWidth( String text , [Number min ], [Number max ] )
:
NumberReturns the width in pixels of the passed text, or the width of the text in this Element. Returns the width in pixels of the passed text, or the width of the text in this Element. Parameters:
| Element | ||
getTop( Boolean local )
@@ -425,18 +442,20 @@ For example, el.getStyles('color', 'font-size', 'width') might return
:
String/NumberReturns the value of the "value" attribute Returns the value of the "value" attribute Parameters:
| Element | ||
getViewSize()
:
- Object Returns the width and height of the viewport.
-var vpSize = Ext.getBody().getViewSize();
-
- // all Windows cr... Returns the width and height of the viewport.
-
Parameters:
| Element | ||
getWidth( [Boolean contentWidth ] )
+ voidReturns 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
+getViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars.
+To obtain the size including scrollbars, use getStyleSize
+Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.Parameters:
| Element | ||
getWidth( [Boolean contentWidth ] )
:
NumberReturns the offset width of the element Returns the offset width of the element Parameters:
| Element | ||
getX()
:
@@ -444,18 +463,13 @@ var vpSize = Ext.getBody().getViewSize();
:
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 | ||
handleError( Object/Error e )
- :
- voidFramework-wide error-handler. Developers can override this method to provide
-custom exception-handling. Framework e... Framework-wide error-handler. Developers can override this method to provide
-custom exception-handling. Framework errors will often extend from the base
-Ext.Error class. Parameters:
| Element | ||
hasClass( String className )
+ NumberGets 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 | ||
hasClass( 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 | ||
hover( Function overFn , Function outFn , [Object scope ], [Object options ] )
:
- Ext.ElementSets up event handlers to call the passed functions when the mouse is moved into and out of the Element. Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. Parameters:
| Element | ||
initDD( String group , Object config , Object overrides )
+ Ext.ElementSets up event handlers to call the passed functions when the mouse is moved into and out of the Element. Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. Parameters:
| Element | ||
initDD( String group , Object config , Object overrides )
:
Ext.dd.DDInitializes a Ext.dd.DD drag drop object for this element. Initializes a Ext.dd.DD drag drop object for this element. Parameters:
| Element | ||
initDDProxy( String group , Object config , Object overrides )
:
@@ -471,7 +485,7 @@ Ext.Error class.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 )
+ 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 | ||
isBorderBox()
:
@@ -487,56 +501,60 @@ Ext.Error class. Parameters:
| Element | ||
load()
:
- Ext.Element Direct access to the Updater Ext.Updater.update method. The method takes the same object
-parameter as Ext.Updater.up... Direct access to the Updater Ext.Updater.update method. The method takes the same object
+ Ext.Element Direct access to the Updater Ext.Updater.update method. The method takes the same object
+parameter as Ext.Updater.upd... Direct access to the Updater Ext.Updater.update method. The method takes the same object
parameter as Ext.Updater.update Parameters:
| Element | ||
mask( [String msg ], [String msgCls ] )
:
- ElementPuts a mask over this element to disable user interaction. Requires core.css.
-This method can only be applied to ele... Puts a mask over this element to disable user interaction. Requires core.css.
+ Element Puts a mask over this element to disable user interaction. Requires core.css.
+This method can only be applied to elem... Puts a mask over this element to disable user interaction. Requires core.css.
This method can only be applied to elements which accept child nodes. Parameters:
| Element | ||
move( String direction , Number distance , [Boolean/Object animate ] )
:
Ext.ElementMove this element relative to its current position. Move this element relative to its current position. Parameters:
| Element | ||
moveTo( Number x , Number y , [Boolean/Object animate ] )
:
- Ext.ElementSets the position of the element in page coordinates, regardless of how the element is positioned.
-The element must ... Sets the position of the element in page coordinates, regardless of how the element is positioned.
+ Ext.Element Sets 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 | ||
next( [String selector ], [Boolean returnDom ] )
:
Ext.Element/HTMLElementGets the next sibling, skipping text nodes Gets the next sibling, skipping text nodes Parameters:
| Element | ||
on( String eventName , Function fn , [Object scope ], [Object options ] )
:
- voidAppends an event handler (shorthand for addListener). Appends an event handler (shorthand for addListener). Parameters:
| Element | ||
parent( [String selector ], [Boolean returnDom ] )
+ voidAppends an event handler (shorthand for addListener). Appends an event handler (shorthand for addListener). 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 | ||
position( [String pos ], [Number zIndex ], [Number x ], [Number y ] )
:
- voidInitializes positioning on this element. If a desired position is not passed, it will make the
-the element positione... Initializes positioning on this element. If a desired position is not passed, it will make the
+ void Initializes positioning on this element. If a desired position is not passed, it will make the
+the element positioned... Initializes positioning on this element. If a desired position is not passed, it will make the
the element positioned relative IF it is not already positioned. 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 | ||
query( String selector )
+ 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 | ||
radioClass( 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 | ||
relayEvent( String eventName , Object object )
:
- voidCreate an event handler on this element such that when the event fires and is handled by this element,
-it will be re... Create an event handler on this element such that when the event fires and is handled by this element,
-it will be relayed to another object (i.e., fired again as if it originated from that object instead). Parameters:
| Element | ||
remove()
:
- void Removes this element from the DOM and deletes it from the cache Removes this element from the DOM and deletes it from the cache Parameters:
| Element | ||
removeAllListeners()
+ 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 | ||
removeClass( String/Array className )
+ Ext.ElementRemoves all previous added listeners from this element Removes all previous added listeners from this element Parameters:
| Element | ||
removeAnchor()
:
- Ext.Element Removes 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.ElementRemove any anchor to this element. See anchorTo. Remove any anchor to this element. See anchorTo. Parameters:
| Element | ||
removeClass( String/Array className )
:
- 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 Removes 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 )
:
@@ -546,62 +564,62 @@ to this Element.Returns:
| Element | ||
scroll( String direction , Number distance , [Boolean/Object animate ] )
:
- BooleanScrolls this element the specified direction. Does bounds checking to make sure the scroll is
-within this element's ... Scrolls this element the specified direction. Does bounds checking to make sure the scroll is
-within this element's scrollable range. Parameters:
| Element | ||
scrollIntoView( [Mixed container ], [Boolean hscroll ] )
:
- Ext.ElementScrolls this element into view within the passed container. Scrolls this element into view within the passed container. Parameters:
| Element | ||
scrollTo( String side , Number value , [Boolean/Object animate ] )
:
ElementScrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it ... Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it will try to do it. For auto bounds checking, use scroll(). Parameters:
| Element | ||
select( String/Array selector , [Boolean unique ], [HTMLElement/String root ] )
:
- CompositeElementLite/CompositeElementSelects elements based on the passed CSS selector to enable Element methods
-to be applied to many related elements i... 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
+ CompositeElementLite/CompositeElement Selects 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
CompositeElementLite 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 | ||
setBounds( Number x , Number y , Mixed width , Mixed height , [Boolean/Object animate ] )
:
- Ext.ElementSets the element's position and size in one shot. If animation is true then width, height, x and y will be animated c... Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently. Parameters:
| Element | ||
setBox( Object box , [Boolean adjust ], [Boolean/Object animate ] )
:
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 | ||
setDisplayed( Mixed value )
:
Ext.ElementSets the CSS display property. Uses originalDisplay if the specified value is a boolean true. Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true. Parameters:
| Element | ||
setHeight( Mixed height , [Boolean/Object animate ] )
:
- Ext.ElementSet the height of this Element.
-// change the height to 200px and animate with default configuration
-Ext.fly('eleme... 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 | ||
setLeftTop( String left , String top )
:
Ext.ElementQuick set left and top adding default units Quick set left and top adding default units Parameters:
| Element | ||
setLocation( Number x , Number y , [Boolean/Object animate ] )
:
- Ext.ElementSets the position of the element in page coordinates, regardless of how the element is positioned.
-The element must ... Sets the position of the element in page coordinates, regardless of how the element is positioned.
+ Ext.Element Sets 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 | ||
setOpacity( Float opacity , [Boolean/Object animate ] )
:
- Ext.ElementSet the opacity of the element Set the opacity of the element Parameters:
| Element | ||
setPositioning( Object posCfg )
:
Ext.ElementSet positioning with an object returned by getPositioning(). Set positioning with an object returned by getPositioning(). Parameters:
| Element | ||
setRegion( Ext.lib.Region region , [Boolean/Object animate ] )
@@ -610,36 +628,36 @@ the default animation ({duration: .35, easing: 'easeIn'})Sets 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 | ||
setVisibilityMode( visMode Ext.Element.VISIBILITY )
+ 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 | ||
setVisibilityMode( Number visMode )
:
- Ext.ElementSets the element's visibility mode. When setVisible() is called it
-will use this to determine whether to set the vis... Sets the element's visibility mode. When setVisible() is called it
-will use this to determine whether to set the visibility or the display property. Parameters:
| Element | ||
setVisible( Boolean visible , [Boolean/Object animate ] )
+ Ext.ElementSets the element's visibility mode. When setVisible() is called it
+will use this to determine whether to set the visi... Sets the element's visibility mode. When setVisible() is called it
+will use this to determine whether to set the visibility or the display property. 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 d... Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use
+ Ext.Element Sets 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 , [Boolean/Object animate ] )
:
- Ext.ElementSet the width of this Element. Set the width of this Element. Parameters:
| Element | ||
setX( Number The , [Boolean/Object animate ] )
:
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 , [Boolean/Object animate ] )
:
- Ext.ElementSets the position of the element in page coordinates, regardless of how the element is positioned.
-The element must ... Sets the position of the element in page coordinates, regardless of how the element is positioned.
+ Ext.Element Sets 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 | ||
setZIndex( Number zindex )
@@ -657,10 +675,10 @@ element, if any, will be assigned z-index + 1, and the shim element, if any, wil
:
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 | ||
un( String eventName , Function fn , [Object scope ] )
+ 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 | ||
un( String eventName , Function fn , Object scope )
:
- Ext.ElementRemoves an event handler from this element (see removeListener for additional notes). Removes an event handler from this element (see removeListener for additional notes). Parameters:
| Element | ||
unclip()
+ Ext.Element Removes an event handler from this element (see removeListener for additional notes). Removes an event handler from this element (see removeListener for additional notes). Parameters:
| Element | ||
unclip()
:
Ext.Element Return clipping (overflow) to original clipping before clip was called Return clipping (overflow) to original clipping before clip was called Parameters:
| Element | ||
unmask()
:
@@ -668,8 +686,8 @@ to this Element.Returns:
| 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 | ||
update( String html , [Boolean loadScripts ], [Function callback ] )
:
Ext.ElementUpdate the innerHTML of this element, optionally searching for and processing scripts Update the innerHTML of this element, optionally searching for and processing scripts Parameters:
| Element | ||
wrap( [Object config ], [Boolean returnDom ] )
@@ -702,7 +720,9 @@ This is a shortcut for findParentNode() that always returns an Ext.Element.Ext.EventObject e, HtmlElement t , Object o )
Fires when a control loses the input focus and its value has been modified since gaining focus. Fires when a control loses the input focus and its value has been modified since gaining focus. Listeners will be called with the following arguments:
| Element | ||
click :
( Ext.EventObject e , HtmlElement t , Object o )
- Fires when a mouse click is detected within the element. Fires when a mouse click is detected within the element. Listeners will be called with the following arguments:
| Element | ||
dblclick :
+ Fires when a mouse click is detected within the element. Fires when a mouse click is detected within the element. Listeners will be called with the following arguments:
| Element | ||
contextmenu :
+ ( Ext.EventObject e , HtmlElement t , Object o )
+ Fires when a right click is detected within the element. Fires when a right click is detected within the element. Listeners will be called with the following arguments:
| Element | ||
dblclick :
( Ext.EventObject e , HtmlElement t , Object o )
Fires when a mouse double click is detected within the element. Fires when a mouse double click is detected within the element. Listeners will be called with the following arguments:
| Element | ||
error :
( Ext.EventObject e , HtmlElement t , Object o )
|