Package: | Ext |
Class: | Layer |
Extends: | Element |
Defined In: | Layer.js |
Property | Defined By | |
---|---|---|
defaultUnit : String | Element | |
The default unit to append to CSS values where a unit isn't provided (defaults to px). | ||
dom : HTMLElement | Element | |
The DOM element | ||
id : String | Element | |
The DOM element ID | ||
originalDisplay : String | Element | |
The element's default display mode (defaults to "") |
Method | Defined By | |
---|---|---|
Layer( Object config , [String/HTMLElement existingEl ] ) |
Layer | |
addClass( String/Array className ) : Ext.Element |
Element | |
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out. | ||
addClassOnClick( String className ) : Ext.Element |
Element | |
Sets up event handlers to add and remove a css class when the mouse is down and then up on this element (a click effect) | ||
addClassOnFocus( String className ) : Ext.Element |
Element | |
Sets up event handlers to add and remove a css class when this element has the focus | ||
addClassOnOver( String className , [Boolean preventFlicker ] ) : Ext.Element |
Element | |
Sets up event handlers to add and remove a css class when the mouse is over this element | ||
addKeyListener( Number/Array/Object/String key , Function fn , [Object scope ] ) : Ext.KeyMap |
Element | |
Convenience method for constructing a KeyMap | ||
addKeyMap( Object config ) : Ext.KeyMap |
Element | |
Creates a KeyMap for this element | ||
addListener( String eventName , Function fn , [Object scope ], [Object options ] ) : void |
Element | |
Appends an event handler | ||
alignTo( String/HTMLElement/Ext.Element element , String position , [Array offsets ], [Boolean/Object animate ] ) : Ext.Element |
Element | |
Aligns this element with another element relative to the specified anchor points. If the other element is the documen... | ||
anchorTo( String/HTMLElement/Ext.Element element , String position , [Array offsets ], [Boolean/Object animate ], [Boolean/Number monitorScroll ], Function callback ) : Ext.Element |
Element | |
Anchors an element to another element and realigns it when the window is resized. | ||
animate( Object args , [Float duration ], [Function onComplete ], [String easing ], [String animType ] ) : Ext.Element |
Element | |
Perform animation on this element. | ||
appendChild( String/HTMLElement/Array/Element/CompositeElement el ) : Ext.Element |
Element | |
Appends the passed element(s) to this element | ||
appendTo( String/HTMLElement/Element el ) : Ext.Element |
Element | |
Appends this element to the passed element | ||
applyStyles( String/Object/Function styles ) : Ext.Element |
Element | |
More flexible version of setStyle for setting style properties. | ||
autoHeight( [Boolean animate ], [Float duration ], [Function onComplete ], [String easing ] ) : Ext.Element |
Element | |
Measures the element's content height and updates height to match. Note: this function uses setTimeout so the new hei... | ||
beginMeasure() : Ext.Element | Element | |
Temporarily enables offsets (width,height,x,y) for an element with display:none, use endMeasure() when done. | ||
blur() : Ext.Element | Element | |
Tries to blur the element. Any exceptions are caught and ignored. | ||
boxWrap( [String class ] ) : Ext.Element |
Element | |
Wraps the specified element with a special markup/CSS block that renders by default as a gray container with a gradie... | ||
center( [String/HTMLElement/Ext.Element centerIn ] ) : void |
Element | |
Centers the Element in either the viewport, or another Element. | ||
child( String selector , [Boolean returnDom ] ) : HTMLElement/Ext.Element |
Element | |
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not cont... | ||
clean( [Boolean forceReclean ] ) : void |
Element | |
Removes worthless text nodes | ||
clearOpacity() : Ext.Element | Element | |
Clears any opacity settings from this element. Required in some cases for IE. | ||
clearPositioning( [String value ] ) : Ext.Element |
Element | |
Clear positioning back to the default when the document was loaded | ||
clip() : Ext.Element | Element | |
Store the current overflow setting and clip overflow on the element - use unclip to remove | ||
contains( HTMLElement/String el ) : Boolean |
Element | |
Returns true if this element is an ancestor of the passed element | ||
createChild( Object config , [HTMLElement insertBefore ], [Boolean returnDom ] ) : Ext.Element |
Element | |
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child e... | ||
createProxy( String/Object config , [String/HTMLElement renderTo ], [Boolean matchBox ] ) : Ext.Element |
Element | |
Creates a proxy element of this element | ||
createShim() : Ext.Element | Element | |
Creates an iframe shim for this element to keep selects and other windowed objects from showing through. | ||
down( String selector , [Boolean returnDom ] ) : HTMLElement/Ext.Element |
Element | |
Selects a single *direct* child based on the passed CSS selector (the selector should not contain an id). | ||
enableDisplayMode( [String display ] ) : Ext.Element |
Element | |
Convenience method for setVisibilityMode(Element.DISPLAY) | ||
endMeasure() : Ext.Element | Element | |
Restores displays to before beginMeasure was called | ||
findParent( String selector , [Number/String/HTMLElement/Element maxDepth ], [Boolean returnEl ] ) : HTMLElement |
Element | |
Looks at this node and then at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:fi... | ||
findParentNode( String selector , [Number/String/HTMLElement/Element maxDepth ], [Boolean returnEl ] ) : HTMLElement |
Element | |
Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) | ||
fitToParent( [Boolean monitorResize ], [String/HTMLElment/Element targetParent ] ) : Ext.Element |
Element | |
Sizes this element to its parent element's dimensions performing neccessary box adjustments. | ||
focus() : Ext.Element | Element | |
Tries to focus the element. Any exceptions are caught and ignored. | ||
getAlignToXY( String/HTMLElement/Ext.Element element , String position , [Array offsets ] ) : Array |
Element | |
Gets the x,y coordinates to align this element with another element. See alignTo for more info on the supported posit... | ||
getAnchorXY( [String anchor ], [Object size ], [Boolean local ] ) : Array |
Element | |
Gets the x,y coordinates specified by the anchor position on the element. | ||
getAttributeNS( String namespace , String name ) : String |
Element | |
Returns the value of a namespaced attribute from the element's underlying DOM node. | ||
getBorderWidth( String side ) : Number |
Element | |
Gets the width of the border(s) for the specified side(s) | ||
getBottom( Boolean local ) : Number |
Element | |
Gets the bottom Y coordinate of the element (element Y position + element height) | ||
getBox( [Boolean contentBox ], [Boolean local ] ) : Object |
Element | |
Return a box {x, y, width, height} that can be used to set another elements size/location to match this element. | ||
getCenterXY() : Array | Element | |
Calculates the x, y to center this element on the screen | ||
getColor( String attr , String defaultValue , [String prefix ] ) : void |
Element | |
Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values are convert to standa... | ||
getComputedHeight() : Number | Element | |
Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders when... | ||
getComputedWidth() : Number | Element | |
Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when ne... | ||
getFrameWidth( String sides ) : Number |
Element | |
Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth() for more informat... | ||
getHeight( [Boolean contentHeight ] ) : Number |
Element | |
Returns the offset height of the element | ||
getLeft( Boolean local ) : Number |
Element | |
Gets the left X coordinate | ||
getMargins( [String sides ] ) : Object/Number |
Element | |
Returns an object with properties top, left, right and bottom representing the margins of this element unless sides i... | ||
getNextSibling() : HTMLElement | Element | |
Gets the next sibling, skipping text nodes | ||
getPadding( String side ) : Number |
Element | |
Gets the width of the padding(s) for the specified side(s) | ||
getPositioning() : Object | Element | |
Gets an object with all CSS positioning properties. Useful along with setPostioning to get snapshot before performing... | ||
getPrevSibling() : HTMLElement | Element | |
Gets the previous sibling, skipping text nodes | ||
getRegion() : Region | Element | |
Returns the region of the given element. The element must be part of the DOM tree to have a region (display:none or e... | ||
getRight( Boolean local ) : Number |
Element | |
Gets the right X coordinate of the element (element X position + element width) | ||
getScroll() : Object | Element | |
Returns the current scroll position of the element. | ||
getSize( [Boolean contentSize ] ) : Object |
Element | |
Returns the size of the element. | ||
getStyle( String property ) : String |
Element | |
Normalizes currentStyle and computedStyle. This is not YUI getStyle, it is an optimised version. | ||
getStyles( String style1 , String style2 , String etc. ) : Object |
Element | |
Returns an object with properties matching the styles requested. For example, el.getStyles('color', 'font-size', 'wid... | ||
getTop( Boolean local ) : Number |
Element | |
Gets the top Y coordinate | ||
getUpdateManager() : Ext.UpdateManager | Element | |
Gets this element's UpdateManager | ||
getValue( Boolean asNumber ) : String/Number |
Element | |
Returns the value of the "value" attribute | ||
getViewSize() : Object | Element | |
Returns the width and height of the viewport. | ||
getWidth( [Boolean contentWidth ] ) : Number |
Element | |
Returns the offset width of the element | ||
getX() : Number | Element | |
Gets the current X position of the element based on page coordinates. Element must be part of the DOM tree to have p... | ||
getXY() : Array | Element | |
Gets the current position of the element based on page coordinates. Element must be part of the DOM tree to have pag... | ||
getY() : Number | Element | |
Gets the current Y position of the element based on page coordinates. Element must be part of the DOM tree to have p... | ||
hasClass( String className ) : Boolean |
Element | |
Checks if the specified CSS class exists on this element's DOM node. | ||
hide( [Boolean/Object animate ] ) : Ext.Element |
Element | |
Hide this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. | ||
initDD( String group , Object config , Object overrides ) : Ext.dd.DD |
Element | |
Initializes a Ext.dd.DD drag drop object for this element. | ||
initDDProxy( String group , Object config , Object overrides ) : Ext.dd.DDProxy |
Element | |
Initializes a Ext.dd.DDProxy object for this element. | ||
initDDTarget( String group , Object config , Object overrides ) : Ext.dd.DDTarget |
Element | |
Initializes a Ext.dd.DDTarget object for this element. | ||
insertAfter( String/HTMLElement/Element el ) : Ext.Element |
Element | |
Inserts this element after the passed element in the DOM | ||
insertBefore( String/HTMLElement/Element el ) : Ext.Element |
Element | |
Inserts this element before the passed element in the DOM | ||
insertFirst( String/HTMLElement/Element/Object el ) : Ext.Element |
Element | |
Inserts (or creates) an element (or DomHelper config) as the first child of the this element | ||
insertHtml( String where , String html , Boolean returnEl ) : HTMLElement/Ext.Element |
Element | |
Inserts an html fragment into this element | ||
insertSibling( String/HTMLElement/Element/Object el , [String where ], [Boolean returnDom ] ) : Ext.Element |
Element | |
Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element | ||
is( String selector ) : Boolean |
Element | |
Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child) | ||
isBorderBox() : Boolean | Element | |
Tests various css rules/browsers to determine if this element uses a border box | ||
isDisplayed() : Boolean | Element | |
Returns true if display is not "none" | ||
isMasked() : Boolean | Element | |
Returns true if this element is masked | ||
isScrollable() : Boolean | Element | |
Returns true if this element is scrollable. | ||
isVisible( [Boolean deep ] ) : Boolean |
Element | |
Checks whether the element is currently visible using both visibility and display properties. | ||
load( String/Function url , [String/Object params ], [Function callback ], [Boolean discardUrl ] ) : Ext.Element |
Element | |
Direct access to the UpdateManager update() method (takes the same parameters). | ||
mask( [String msg ], [String msgCls ] ) : Element |
Element | |
Puts a mask over this element to disable user interaction. Requires core.css. This method can only be applied to elem... | ||
move( String direction , Number distance , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Move this element relative to its current position. | ||
moveTo( Number x , Number y , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the position of the element in page coordinates, regardless of how the element is positioned. The element must b... | ||
position( [String pos ], [Number zIndex ], [Number x ], [Number y ] ) : void |
Element | |
Initializes positioning on this element. If a desired position is not passed, it will make the the element positioned... | ||
query( String selector ) : Array |
Element | |
Selects child nodes based on the passed CSS selector (the selector should not contain an id). | ||
radioClass( String/Array className ) : Ext.Element |
Element | |
Adds one or more CSS classes to this element and removes the same class(es) from all siblings. | ||
remove() : void | Element | |
Removes this element from the DOM and deletes it from the cache | ||
removeAllListeners() : Ext.Element | Element | |
Removes all previous added listeners from this element | ||
removeClass( String/Array className ) : Ext.Element |
Element | |
Removes one or more CSS classes from the element. | ||
removeListener( String eventName , Function fn ) : Ext.Element |
Element | |
Removes an event handler from this element | ||
repaint() : Ext.Element | Element | |
Forces the browser to repaint this element | ||
replace( String/HTMLElement/Element el ) : Ext.Element |
Element | |
Replaces the passed element with this element | ||
replaceClass( String oldClassName , String newClassName ) : Ext.Element |
Element | |
Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added. | ||
scroll( String direction , Number distance , [Boolean/Object animate ] ) : Boolean |
Element | |
Scrolls this element the specified direction. Does bounds checking to make sure the scroll is within this element's s... | ||
scrollIntoView( [String/HTMLElement/Element container ], [Boolean hscroll ] ) : Ext.Element |
Element | |
Scrolls this element into view within the passed container. | ||
scrollTo( String side , Number value , [Boolean/Object animate ] ) : Element |
Element | |
Scrolls this element the specified scroll point. It does NOT do bounds checking so if you scroll to a weird value it ... | ||
select( String selector , [Boolean unique ] ) : CompositeElement/CompositeElementLite |
Element | |
Creates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id). | ||
set( Object o , [Boolean useSet ] ) : Ext.Element |
Element | |
Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) | ||
setBottom( String bottom ) : Ext.Element |
Element | |
Sets the element's CSS bottom style. | ||
setBounds( Number x , Number y , Number width , Number height , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated c... | ||
setBox( Object box , [Boolean adjust ], [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the element's box. Use getBox() on another element to get a box obj. If animate is true then width, height, x an... | ||
setDisplayed( Boolean value ) : Ext.Element |
Element | |
Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true. | ||
setHeight( Number height , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Set the height of the element | ||
setLeft( String left ) : Ext.Element |
Element | |
Sets the element's left position directly using CSS style (instead of setX). | ||
setLeftTop() : Ext.Element | Element | |
Quick set left and top adding default units | ||
setLocation( Number x , Number y , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the position of the element in page coordinates, regardless of how the element is positioned. The element must b... | ||
setOpacity( Float opacity , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Set the opacity of the element | ||
setPositioning( Object posCfg ) : Ext.Element |
Element | |
Set positioning with an object returned by getPositioning(). | ||
setRegion( Ext.lib.Region region , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the element's position and size the the specified region. If animation is true then width, height, x and y will ... | ||
setRight( String right ) : Ext.Element |
Element | |
Sets the element's CSS right style. | ||
setSize( Number width , Number height , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Set the size of the element. If animation is true, both width an height will be animated concurrently. | ||
setStyle( String/Object property , [String value ] ) : Ext.Element |
Element | |
Wrapper for setting style properties, also takes single object parameter of multiple styles. | ||
setTop( String top ) : Ext.Element |
Element | |
Sets the element's top position directly using CSS style (instead of setY). | ||
setVisibilityMode( visMode Element.VISIBILITY ) : Ext.Element |
Element | |
Sets the element's visibility mode. When setVisible() is called it will use this to determine whether to set the visi... | ||
setVisible( Boolean visible , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the visibility of the element (see details). If the visibilityMode is set to Element.DISPLAY, it will use the di... | ||
setWidth( Number width , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Set the width of the element | ||
setX( Number The , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the X position of the element based on page coordinates. Element must be part of the DOM tree to have page coor... | ||
setXY( Array pos , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the position of the element in page coordinates, regardless of how the element is positioned. The element must b... | ||
setY( Number The , [Boolean/Object animate ] ) : Ext.Element |
Element | |
Sets the Y position of the element based on page coordinates. Element must be part of the DOM tree to have page coor... | ||
setZIndex( Number zindex ) : this |
Layer | |
Sets the z-index of this layer and adjusts any shadow and shim z-indexes. The layer z-index is automatically incremen... | ||
show( [Boolean/Object animate ] ) : Ext.Element |
Element | |
Show this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. | ||
swallowEvent( String eventName , [Boolean preventDefault ] ) : Ext.Element |
Element | |
Stops the specified event from bubbling and optionally prevents the default action | ||
toggle( [Boolean/Object animate ] ) : Ext.Element |
Element | |
Toggles the element's visibility or display, depending on visibility mode. | ||
toggleClass( String className ) : Ext.Element |
Element | |
Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). | ||
translatePoints( Number/Array x , Number y , Object An ) : void |
Element | |
Translates the passed page coordinates into left/top css values for this element | ||
unclip() : Ext.Element | Element | |
Return clipping (overflow) to original clipping before clip() was called | ||
unmask() : void | Element | |
Removes a previously applied mask. If removeEl is true the mask overlay is destroyed, otherwise it is cached for reuse. | ||
unselectable() : Ext.Element | Element | |
Disables text selection for this element (normalized across browsers) | ||
up( String selector , [Number/String/HTMLElement/Element maxDepth ] ) : Ext.Element |
Element | |
Walks up the dom looking for a parent node that matches the passed simple selector (e.g. div.some-class or span:first... | ||
update( String html , [Boolean loadScripts ], Function callback ) : Ext.Element |
Element | |
Update the innerHTML of this element, optionally searching for and processing scripts | ||
wrap( [Object config ], [Boolean returnDom ] ) : /HTMLElementElement |
Element | |
Creates and wraps this element with another element |
Config Options | Defined By | |
---|---|---|
cls : String | Layer | |
CSS class to add to the element | ||
constrain : Boolean | Layer | |
False to disable constrain to viewport (defaults to true) | ||
dh : Object | Layer | |
DomHelper object config to create element with (defaults to {tag: "div", cls: "x-layer"}). | ||
shadow : String/Boolean | Layer | |
True to create a shadow element with default class "x-layer-shadow", or you can pass a string with a CSS class name. ... | ||
shadowOffset : Number | Layer | |
Number of pixels to offset the shadow (defaults to 3) | ||
shim : Boolean | Layer | |
False to disable the iframe shim in browsers which need one (defaults to true) | ||
zindex : Number | Layer | |
Starting z-index (defaults to 11000) |
public String defaultUnit
public String originalDisplay
public function Layer( Object config
, [String/HTMLElement existingEl
] )
config
: ObjectexistingEl
: String/HTMLElementpublic function addClass( String/Array className
)
className
: String/ArrayExt.Element
public function addClassOnClick( String className
)
className
: StringExt.Element
public function addClassOnFocus( String className
)
className
: StringExt.Element
public function addClassOnOver( String className
, [Boolean preventFlicker
] )
className
: StringpreventFlicker
: BooleanExt.Element
public function addKeyListener( Number/Array/Object/String key
, Function fn
, [Object scope
] )
key
: Number/Array/Object/Stringfn
: Functionscope
: ObjectExt.KeyMap
public function addKeyMap( Object config
)
config
: ObjectExt.KeyMap
public function addListener( String eventName
, Function fn
, [Object scope
], [Object options
] )
eventName
: Stringfn
: Functionscope
: Objectoptions
: Objectvoid
public function alignTo( String/HTMLElement/Ext.Element element
, String position
, [Array offsets
], [Boolean/Object animate
] )
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:
// align el to other-el using the default positioning ("tl-bl", non-constrained)
el.alignTo("other-el");
// align the top left corner of el with the top right corner of other-el (constrained to viewport)
el.alignTo("other-el", "tr?");
// align the bottom right corner of el with the center left edge of other-el
el.alignTo("other-el", "br-l?");
// align the center of el with the bottom left corner of other-el and
// adjust the x position by -6 pixels (and the y position by 0)
el.alignTo("other-el", "c-bl", [-6, 0]);
element
: String/HTMLElement/Ext.Elementposition
: Stringoffsets
: Arrayanimate
: Boolean/ObjectExt.Element
public function anchorTo( String/HTMLElement/Ext.Element element
, String position
, [Array offsets
], [Boolean/Object animate
], [Boolean/Number monitorScroll
], Function callback
)
element
: String/HTMLElement/Ext.Elementposition
: Stringoffsets
: Arrayanimate
: Boolean/ObjectmonitorScroll
: Boolean/Numbercallback
: FunctionExt.Element
public function animate( Object args
, [Float duration
], [Function onComplete
], [String easing
], [String animType
] )
args
: Objectduration
: FloatonComplete
: Functioneasing
: StringanimType
: StringExt.Element
public function appendChild( String/HTMLElement/Array/Element/CompositeElement el
)
el
: String/HTMLElement/Array/Element/CompositeElementExt.Element
public function appendTo( String/HTMLElement/Element el
)
el
: String/HTMLElement/ElementExt.Element
public function applyStyles( String/Object/Function styles
)
styles
: String/Object/FunctionExt.Element
public function autoHeight( [Boolean animate
], [Float duration
], [Function onComplete
], [String easing
] )
animate
: Booleanduration
: FloatonComplete
: Functioneasing
: StringExt.Element
public function beginMeasure()
Ext.Element
public function blur()
Ext.Element
public function boxWrap( [String class
] )
class
: StringExt.Element
public function center( [String/HTMLElement/Ext.Element centerIn
] )
centerIn
: String/HTMLElement/Ext.Elementvoid
public function child( String selector
, [Boolean returnDom
] )
selector
: StringreturnDom
: BooleanHTMLElement/Ext.Element
public function clean( [Boolean forceReclean
] )
forceReclean
: Booleanvoid
public function clearOpacity()
Ext.Element
public function clearPositioning( [String value
] )
value
: StringExt.Element
public function clip()
Ext.Element
public function contains( HTMLElement/String el
)
el
: HTMLElement/StringBoolean
public function createChild( Object config
, [HTMLElement insertBefore
], [Boolean returnDom
] )
config
: ObjectinsertBefore
: HTMLElementreturnDom
: BooleanExt.Element
public function createProxy( String/Object config
, [String/HTMLElement renderTo
], [Boolean matchBox
] )
config
: String/ObjectrenderTo
: String/HTMLElementmatchBox
: BooleanExt.Element
public function createShim()
Ext.Element
public function down( String selector
, [Boolean returnDom
] )
selector
: StringreturnDom
: BooleanHTMLElement/Ext.Element
public function enableDisplayMode( [String display
] )
display
: StringExt.Element
public function endMeasure()
Ext.Element
public function findParent( String selector
, [Number/String/HTMLElement/Element maxDepth
], [Boolean returnEl
] )
selector
: StringmaxDepth
: Number/String/HTMLElement/ElementreturnEl
: BooleanHTMLElement
public function findParentNode( String selector
, [Number/String/HTMLElement/Element maxDepth
], [Boolean returnEl
] )
selector
: StringmaxDepth
: Number/String/HTMLElement/ElementreturnEl
: BooleanHTMLElement
public function fitToParent( [Boolean monitorResize
], [String/HTMLElment/Element targetParent
] )
monitorResize
: BooleantargetParent
: String/HTMLElment/ElementExt.Element
public function focus()
Ext.Element
public function getAlignToXY( String/HTMLElement/Ext.Element element
, String position
, [Array offsets
] )
element
: String/HTMLElement/Ext.Elementposition
: Stringoffsets
: ArrayArray
public function getAnchorXY( [String anchor
], [Object size
], [Boolean local
] )
anchor
: Stringsize
: Objectlocal
: BooleanArray
public function getAttributeNS( String namespace
, String name
)
namespace
: Stringname
: StringString
public function getBorderWidth( String side
)
side
: StringNumber
public function getBottom( Boolean local
)
local
: BooleanNumber
public function getBox( [Boolean contentBox
], [Boolean local
] )
contentBox
: Booleanlocal
: BooleanObject
public function getCenterXY()
Array
public function getColor( String attr
, String defaultValue
, [String prefix
] )
attr
: StringdefaultValue
: Stringprefix
: Stringvoid
public function getComputedHeight()
Number
public function getComputedWidth()
Number
public function getFrameWidth( String sides
)
sides
: StringNumber
public function getHeight( [Boolean contentHeight
] )
contentHeight
: BooleanNumber
public function getLeft( Boolean local
)
local
: BooleanNumber
public function getMargins( [String sides
] )
sides
: StringObject/Number
public function getNextSibling()
HTMLElement
public function getPadding( String side
)
side
: StringNumber
public function getPositioning()
Object
public function getPrevSibling()
HTMLElement
public function getRegion()
Region
public function getRight( Boolean local
)
local
: BooleanNumber
public function getScroll()
Object
public function getSize( [Boolean contentSize
] )
contentSize
: BooleanObject
public function getStyle( String property
)
property
: StringString
public function getStyles( String style1
, String style2
, String etc.
)
style1
: Stringstyle2
: Stringetc.
: StringObject
public function getTop( Boolean local
)
local
: BooleanNumber
public function getUpdateManager()
Ext.UpdateManager
public function getValue( Boolean asNumber
)
asNumber
: BooleanString/Number
public function getViewSize()
Object
public function getWidth( [Boolean contentWidth
] )
contentWidth
: BooleanNumber
public function getX()
Number
public function getXY()
Array
public function getY()
Number
public function hasClass( String className
)
className
: StringBoolean
public function hide( [Boolean/Object animate
] )
animate
: Boolean/ObjectExt.Element
public function initDD( String group
, Object config
, Object overrides
)
group
: Stringconfig
: Objectoverrides
: ObjectExt.dd.DD
public function initDDProxy( String group
, Object config
, Object overrides
)
group
: Stringconfig
: Objectoverrides
: ObjectExt.dd.DDProxy
public function initDDTarget( String group
, Object config
, Object overrides
)
group
: Stringconfig
: Objectoverrides
: ObjectExt.dd.DDTarget
public function insertAfter( String/HTMLElement/Element el
)
el
: String/HTMLElement/ElementExt.Element
public function insertBefore( String/HTMLElement/Element el
)
el
: String/HTMLElement/ElementExt.Element
public function insertFirst( String/HTMLElement/Element/Object el
)
el
: String/HTMLElement/Element/ObjectExt.Element
public function insertHtml( String where
, String html
, Boolean returnEl
)
where
: Stringhtml
: StringreturnEl
: BooleanHTMLElement/Ext.Element
public function insertSibling( String/HTMLElement/Element/Object el
, [String where
], [Boolean returnDom
] )
el
: String/HTMLElement/Element/Objectwhere
: StringreturnDom
: BooleanExt.Element
public function is( String selector
)
selector
: StringBoolean
public function isBorderBox()
Boolean
public function isDisplayed()
Boolean
public function isMasked()
Boolean
public function isScrollable()
Boolean
public function isVisible( [Boolean deep
] )
deep
: BooleanBoolean
public function load( String/Function url
, [String/Object params
], [Function callback
], [Boolean discardUrl
] )
url
: String/Functionparams
: String/Objectcallback
: FunctiondiscardUrl
: BooleanExt.Element
public function mask( [String msg
], [String msgCls
] )
msg
: StringmsgCls
: StringElement
public function move( String direction
, Number distance
, [Boolean/Object animate
] )
direction
: Stringdistance
: Numberanimate
: Boolean/ObjectExt.Element
public function moveTo( Number x
, Number y
, [Boolean/Object animate
] )
x
: Numbery
: Numberanimate
: Boolean/ObjectExt.Element
public function position( [String pos
], [Number zIndex
], [Number x
], [Number y
] )
pos
: StringzIndex
: Numberx
: Numbery
: Numbervoid
public function query( String selector
)
selector
: StringArray
public function radioClass( String/Array className
)
className
: String/ArrayExt.Element
public function remove()
void
public function removeAllListeners()
Ext.Element
public function removeClass( String/Array className
)
className
: String/ArrayExt.Element
public function removeListener( String eventName
, Function fn
)
eventName
: Stringfn
: FunctionExt.Element
public function repaint()
Ext.Element
public function replace( String/HTMLElement/Element el
)
el
: String/HTMLElement/ElementExt.Element
public function replaceClass( String oldClassName
, String newClassName
)
oldClassName
: StringnewClassName
: StringExt.Element
public function scroll( String direction
, Number distance
, [Boolean/Object animate
] )
direction
: Stringdistance
: Numberanimate
: Boolean/ObjectBoolean
public function scrollIntoView( [String/HTMLElement/Element container
], [Boolean hscroll
] )
container
: String/HTMLElement/Elementhscroll
: BooleanExt.Element
public function scrollTo( String side
, Number value
, [Boolean/Object animate
] )
side
: Stringvalue
: Numberanimate
: Boolean/ObjectElement
public function select( String selector
, [Boolean unique
] )
selector
: Stringunique
: BooleanCompositeElement/CompositeElementLite
public function set( Object o
, [Boolean useSet
] )
o
: ObjectuseSet
: BooleanExt.Element
public function setBottom( String bottom
)
bottom
: StringExt.Element
public function setBounds( Number x
, Number y
, Number width
, Number height
, [Boolean/Object animate
] )
x
: Numbery
: Numberwidth
: Numberheight
: Numberanimate
: Boolean/ObjectExt.Element
public function setBox( Object box
, [Boolean adjust
], [Boolean/Object animate
] )
box
: Objectadjust
: Booleananimate
: Boolean/ObjectExt.Element
public function setDisplayed( Boolean value
)
value
: BooleanExt.Element
public function setHeight( Number height
, [Boolean/Object animate
] )
height
: Numberanimate
: Boolean/ObjectExt.Element
public function setLeft( String left
)
left
: StringExt.Element
public function setLeftTop()
Ext.Element
public function setLocation( Number x
, Number y
, [Boolean/Object animate
] )
x
: Numbery
: Numberanimate
: Boolean/ObjectExt.Element
public function setOpacity( Float opacity
, [Boolean/Object animate
] )
opacity
: Floatanimate
: Boolean/ObjectExt.Element
public function setPositioning( Object posCfg
)
posCfg
: ObjectExt.Element
public function setRegion( Ext.lib.Region region
, [Boolean/Object animate
] )
region
: Ext.lib.Regionanimate
: Boolean/ObjectExt.Element
public function setRight( String right
)
right
: StringExt.Element
public function setSize( Number width
, Number height
, [Boolean/Object animate
] )
width
: Numberheight
: Numberanimate
: Boolean/ObjectExt.Element
public function setStyle( String/Object property
, [String value
] )
property
: String/Objectvalue
: StringExt.Element
public function setTop( String top
)
top
: StringExt.Element
public function setVisibilityMode( visMode Element.VISIBILITY
)
Element.VISIBILITY
: visModeExt.Element
public function setVisible( Boolean visible
, [Boolean/Object animate
] )
visible
: Booleananimate
: Boolean/ObjectExt.Element
public function setWidth( Number width
, [Boolean/Object animate
] )
width
: Numberanimate
: Boolean/ObjectExt.Element
public function setX( Number The
, [Boolean/Object animate
] )
The
: Numberanimate
: Boolean/ObjectExt.Element
public function setXY( Array pos
, [Boolean/Object animate
] )
pos
: Arrayanimate
: Boolean/ObjectExt.Element
public function setY( Number The
, [Boolean/Object animate
] )
The
: Numberanimate
: Boolean/ObjectExt.Element
public function setZIndex( Number zindex
)
zindex
: Numberthis
public function show( [Boolean/Object animate
] )
animate
: Boolean/ObjectExt.Element
public function swallowEvent( String eventName
, [Boolean preventDefault
] )
eventName
: StringpreventDefault
: BooleanExt.Element
public function toggle( [Boolean/Object animate
] )
animate
: Boolean/ObjectExt.Element
public function toggleClass( String className
)
className
: StringExt.Element
public function translatePoints( Number/Array x
, Number y
, Object An
)
x
: Number/Arrayy
: NumberAn
: Objectvoid
public function unclip()
Ext.Element
public function unmask()
void
public function unselectable()
Ext.Element
public function up( String selector
, [Number/String/HTMLElement/Element maxDepth
] )
selector
: StringmaxDepth
: Number/String/HTMLElement/ElementExt.Element
public function update( String html
, [Boolean loadScripts
], Function callback
)
html
: StringloadScripts
: Booleancallback
: FunctionExt.Element
public function wrap( [Object config
], [Boolean returnDom
] )
config
: ObjectreturnDom
: Boolean/HTMLElementElement
cls : String
constrain : Boolean
dh : Object
shadow : String/Boolean
shadowOffset : Number
shim : Boolean
zindex : Number