Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.Element Class Reference

More...

Inheritance diagram for Ext.Net.Element:
Ext.Net.ScriptClass Ext.Net.IScriptable Ext.Net.IResourceManager Ext.Net.Layer

Public Member Functions

 Element (string el)
 
 Element (string el, bool chaining)
 
 Element (AbstractComponent el)
 
 Element (AbstractComponent el, bool chaining)
 
virtual Dom GetDom ()
 
override void Call (string name)
 
override void Call (string name, params object[] args)
 
override string ToScript ()
 
virtual Element DelayOn (int delay)
 Turn on delay execution for subsequent methods calling More...
 
virtual Element DelayOff ()
 Turn off delay execution More...
 
virtual Element ChainOn ()
 Turn on script chaining More...
 
virtual Element ChainOff ()
 Turn off script chaining More...
 
virtual Element Up ()
 Return original element, uses with Chaining only More...
 
virtual Element AddCls (string className)
 Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out. More...
 
virtual Element AddCls (string[] classNames)
 Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out. More...
 
virtual Element AddClsOnClick (string className)
 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) More...
 
virtual Element AddClsOnClick (string className, JFunction testFn)
 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) More...
 
virtual Element AddClsOnClick (string className, JFunction testFn, string scope)
 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) More...
 
virtual Element AddClsOnFocus (string className)
 Sets up event handlers to add and remove a css class when this element has the focus More...
 
virtual Element AddClsOnFocus (string className, JFunction testFn)
 Sets up event handlers to add and remove a css class when this element has the focus More...
 
virtual Element AddClsOnFocus (string className, JFunction testFn, string scope)
 Sets up event handlers to add and remove a css class when this element has the focus More...
 
virtual Element AddClsOnOver (string className)
 Sets up event handlers to add and remove a css class when the mouse is over this element More...
 
virtual Element AddClsOnOver (string className, JFunction testFn)
 Sets up event handlers to add and remove a css class when the mouse is over this element More...
 
virtual Element AddClsOnOver (string className, JFunction testFn, string scope)
 Sets up event handlers to add and remove a css class when the mouse is over this element More...
 
virtual void AddKeyListener (KeyBinding key)
 Convenience method for constructing a KeyMap More...
 
virtual void AddListener (ElementListeners listeners)
 Appends an events handlers to this element. More...
 
virtual void AddListener (string eventName, string fn)
 Appends an event handler to this element. More...
 
virtual void AddListener (string eventName, JFunction fn)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invoke
More...
 
virtual void AddListener (string eventName, string fn, string scope)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..
More...
 
virtual void AddListener (string eventName, JFunction fn, string scope)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..
More...
 
virtual void AddListener (string eventName, string fn, string scope, HandlerConfig options)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.
More...
 
virtual void AddListener (string eventName, JFunction fn, string scope, HandlerConfig options)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.
More...
 
virtual void On (ElementListeners listeners)
 Appends an events handlers to this element. More...
 
virtual void On (string eventName, string fn)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
More...
 
virtual void On (string eventName, JFunction fn)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invoke
More...
 
virtual void On (string eventName, string fn, string scope)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..
More...
 
virtual void On (string eventName, JFunction fn, string scope)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..
More...
 
virtual void On (string eventName, string fn, string scope, HandlerConfig options)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.
More...
 
virtual void On (string eventName, JFunction fn, string scope, HandlerConfig options)
 Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.
More...
 
virtual void PurgeAllListeners ()
 Recursively removes all previous added listeners from this element and its children More...
 
virtual Element AlignTo (Element element, string position, int[] offsets, bool animate)
 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. More...
 
virtual Element AlignTo (Element element, string position, int[] offsets, ElementFxConfig animate)
 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. More...
 
virtual Element AlignTo (Element element, string position, int[] offsets)
 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. More...
 
virtual Element AlignTo (Element element, string position)
 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. More...
 
virtual Element AlignTo (Element element)
 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. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, bool animate, bool monitorScroll, JFunction callback)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, ElementFxConfig animate, bool monitorScroll, JFunction callback)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, bool animate, int monitorScroll, JFunction callback)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, ElementFxConfig animate, int monitorScroll, JFunction callback)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, bool animate, int monitorScroll)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, ElementFxConfig animate, int monitorScroll)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, bool animate, bool monitorScroll)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, ElementFxConfig animate, bool monitorScroll)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, bool animate)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets, ElementFxConfig animate)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position, int[] offsets)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element AnchorTo (Element element, string position)
 Anchors an element to another element and realigns it when the window is resized. More...
 
virtual Element Animate (AnimConfig args)
 Perform custom animation on this element. More...
 
virtual Element AppendChild (Element element)
 Appends the passed element(s) to this element More...
 
virtual Element AppendChild (string element)
 Appends the passed element(s) to this element More...
 
virtual Element AppendTo (Element element)
 Appends this element to the passed element More...
 
virtual Element ApplyStyles (string styles)
 More flexible version of setStyle for setting style properties. More...
 
virtual Element ApplyStyles (JsonObject styles)
 More flexible version of setStyle for setting style properties. More...
 
virtual Element ApplyStyles (JFunction styles)
 More flexible version of setStyle for setting style properties. More...
 
virtual Element Blur ()
 Tries to blur the element. Any exceptions are caught and ignored. More...
 
virtual Element BoxWrap (string cssClass)
 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). More...
 
virtual Element BoxWrap ()
 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). More...
 
virtual Element Center (Element centerIn)
 Centers the Element in either the viewport, or another Element. More...
 
virtual Element Center ()
 Centers the Element in either the viewport, or another Element. More...
 
virtual Element Child (string selector)
 Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id). More...
 
virtual Element Clean (bool forceReclean)
 Removes worthless text nodes More...
 
virtual Element Clean ()
 Removes worthless text nodes More...
 
virtual Element ClearOpacity ()
 Clears any opacity settings from this element. Required in some cases for IE. More...
 
virtual Element ClearPositioning (string value)
 Clear positioning back to the default when the document was loaded More...
 
virtual Element Clip ()
 Store the current overflow setting and clip overflow on the element - use unclip to remove More...
 
virtual Element CreateChild (DomObject config, Element insertBefore)
 Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element. More...
 
virtual Element CreateChild (DomObject config)
 Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element. More...
 
virtual Element CreateProxy (DomObject config, string renderTo, bool matchBox)
 Creates a proxy element of this element More...
 
virtual Element CreateProxy (DomObject config, Element renderTo, bool matchBox)
 Creates a proxy element of this element More...
 
virtual Element CreateProxy (string className, string renderTo, bool matchBox)
 Creates a proxy element of this element More...
 
virtual Element CreateProxy (string className, Element renderTo, bool matchBox)
 Creates a proxy element of this element More...
 
virtual Element CreateProxy (string className)
 Creates a proxy element of this element More...
 
virtual Element CreateProxy (DomObject config)
 Creates a proxy element of this element More...
 
virtual Element CreateShim ()
 Creates an iframe shim for this element to keep selects and other windowed objects from showing through. More...
 
virtual Element Down (string selector)
 Selects a single direct child based on the passed CSS selector (the selector should not contain an id). More...
 
virtual Element EnableDisplayMode (string display)
 Convenience method for setVisibilityMode(Element.DISPLAY) More...
 
virtual Element EnableDisplayMode ()
 Convenience method for setVisibilityMode(Element.DISPLAY) More...
 
virtual Element FindParent (string selector, int maxDepth)
 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) More...
 
virtual Element FindParent (string selector, Element maxDepth)
 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) More...
 
virtual Element FindParent (string selector)
 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) More...
 
virtual Element FindParentNode (string selector, int maxDepth)
 Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) More...
 
virtual Element FindParentNode (string selector, Element maxDepth)
 Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) More...
 
virtual Element FindParentNode (string selector)
 Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child) More...
 
virtual Element First (string selector)
 Gets the first child, skipping text nodes More...
 
virtual Element First ()
 Gets the first child, skipping text nodes More...
 
virtual Element Focus (int defer)
 Tries to focus the element. Any exceptions are caught and ignored. More...
 
virtual Element Focus ()
 Tries to focus the element. Any exceptions are caught and ignored. More...
 
virtual Element Hide (bool animate)
 Hide this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. More...
 
virtual Element Hide (ElementFxConfig animate)
 Hide this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. More...
 
virtual Element Hide ()
 Hide this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. More...
 
virtual Element Hover (JFunction overFn, JFunction outFn, string scope, HandlerConfig options)
 Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. More...
 
virtual Element Hover (JFunction overFn, JFunction outFn, string scope)
 Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. More...
 
virtual Element Hover (JFunction overFn, JFunction outFn)
 Sets up event handlers to call the passed functions when the mouse is moved into and out of the Element. More...
 
virtual Element InitDD (string group, DD config, JsonObject overrides)
 Initializes a Ext.dd.DD drag drop object for this element. More...
 
virtual Element InitDDProxy (string group, DDProxy config, JsonObject overrides)
 Initializes a Ext.dd.DDProxy object for this element. More...
 
virtual Element InitDDTarget (string group, DDTarget config, JsonObject overrides)
 Initializes a Ext.dd.DDTarget object for this element. More...
 
virtual Element InsertAfter (Element element)
 Inserts this element after the passed element in the DOM More...
 
virtual Element InsertBefore (Element element)
 Inserts this element before the passed element in the DOM More...
 
virtual Element InsertFirst (Element element)
 Inserts an element as the first child of this element More...
 
virtual Element InsertFirst (string element)
 Inserts an element as the first child of this element More...
 
virtual Element InsertFirst (DomObject element)
 Creates an DomHelper config as the first child of this element More...
 
virtual Element InsertHtml (InsertPosition where, string html)
 Inserts an html fragment into this element More...
 
virtual Element InsertSibling (Element element, InsertPosition where)
 Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element More...
 
virtual Element InsertSibling (string element, InsertPosition where)
 Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element More...
 
virtual Element InsertSibling (DomObject element, InsertPosition where)
 Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element More...
 
virtual Element InsertSibling (Element element)
 Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element More...
 
virtual Element InsertSibling (string element)
 Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element More...
 
virtual Element InsertSibling (DomObject element)
 Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element More...
 
virtual Element Last (string selector)
 Gets the last child, skipping text nodes More...
 
virtual Element Last ()
 Gets the last child, skipping text nodes More...
 
virtual Element Load (BaseLoadConfig config)
 Direct access to the Updater Ext.Updater.update method. More...
 
virtual Element Mask (string msg, string msgCls)
 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. More...
 
virtual Element Mask (string msg)
 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. More...
 
virtual Element Mask ()
 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. More...
 
virtual Element Move (Direction direction, int distance, bool animate)
 Move this element relative to its current position. More...
 
virtual Element Move (Direction direction, int distance, ElementFxConfig animate)
 Move this element relative to its current position. More...
 
virtual Element Move (Direction direction, int distance)
 Move this element relative to its current position. More...
 
virtual Element MoveTo (int x, int y, bool animate)
 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). More...
 
virtual Element MoveTo (int x, int y, ElementFxConfig animate)
 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). More...
 
virtual Element MoveTo (int x, int y)
 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). More...
 
virtual Element Next (string selector)
 Gets the next sibling, skipping text nodes More...
 
virtual Element Next ()
 Gets the next sibling, skipping text nodes More...
 
virtual Element Parent (string selector)
 Gets the parent node for this element, optionally chaining up trying to match a selector More...
 
virtual Element Parent ()
 Gets the parent node for this element, optionally chaining up trying to match a selector More...
 
virtual Element Position (CssPosition position, int zIndex, int x, int y)
 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. More...
 
virtual Element Position (CssPosition position, int zIndex)
 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. More...
 
virtual Element Position (CssPosition position)
 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. More...
 
virtual Element Position ()
 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. More...
 
virtual Element Prev (string selector)
 Gets the previous sibling, skipping text nodes More...
 
virtual Element Prev ()
 Gets the previous sibling, skipping text nodes More...
 
virtual Element RadioClass (string className)
 Adds one or more CSS classes to this element and removes the same class(es) from all siblings. More...
 
virtual Element RadioClass (string[] classNames)
 Adds one or more CSS classes to this element and removes the same class(es) from all siblings. More...
 
virtual Element RelayEvent (string eventName, Observable observable)
 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). More...
 
virtual Element RelayEvent (string eventName, string observable)
 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). More...
 
virtual Element Remove ()
 Removes this element from the DOM and deletes it from the cache More...
 
virtual Element RemoveAllListeners ()
 Removes all previous added listeners from this element More...
 
virtual Element RemoveAttribute (string attr)
 Removes the attribute from an underlying DOM object of this element. More...
 
virtual Element RemoveCls (string className)
 Removes one or more CSS classes from the element. More...
 
virtual Element RemoveCls (string[] classNames)
 Removes one or more CSS classes from the element. More...
 
virtual void RemoveListener (string eventName, string funcName, string scope)
 Removes an event handler from this element. Note: if a scope was explicitly specified when adding the listener, the same scope must be specified here. More...
 
virtual void RemoveListener (string eventName, string funcName)
 Removes an event handler from this element. Note: if a scope was explicitly specified when adding the listener, the same scope must be specified here. More...
 
virtual Element RemoveStyleProperty (string prop)
 Removes the style's property from this element. More...
 
virtual Element Repaint ()
 Forces the browser to repaint this element More...
 
virtual Element Replace (Element element)
 Replaces the passed element with this element More...
 
virtual Element ReplaceClass (string oldClassName, string newClassName)
 Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added. More...
 
virtual Element ReplaceWith (Element element)
 Replaces this element with the passed element More...
 
virtual Element ReplaceWith (DomObject element)
 Replaces this element with the passed element More...
 
virtual Element Scroll (Direction direction, int distance, bool animate)
 Scrolls this element the specified direction. Does bounds checking to make sure the scroll is within this element's scrollable range. More...
 
virtual Element Scroll (Direction direction, int distance, ElementFxConfig animate)
 Scrolls this element the specified direction. Does bounds checking to make sure the scroll is within this element's scrollable range. More...
 
virtual Element Scroll (Direction direction, int distance)
 Scrolls this element the specified direction. Does bounds checking to make sure the scroll is within this element's scrollable range. More...
 
virtual Element ScrollIntoView (Element container, bool hscroll)
 Scrolls this element into view within the passed container. More...
 
virtual Element ScrollIntoView (Element container)
 Scrolls this element into view within the passed container. More...
 
virtual Element ScrollIntoView ()
 Scrolls this element into view within the passed container. More...
 
virtual Element ScrollTo (Direction side, int value, bool animate)
 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(). More...
 
virtual Element ScrollTo (Direction side, int value, ElementFxConfig animate)
 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(). More...
 
virtual Element ScrollTo (Direction side, int value)
 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(). More...
 
virtual Element Set (JsonObject o, bool useSet)
 Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) More...
 
virtual Element Set (JsonObject o)
 Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function) More...
 
virtual Element SetBottom (string bottom)
 Sets the element's CSS bottom style. More...
 
virtual Element SetBounds (int x, int y, int width, int height, bool animate)
 Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently. More...
 
virtual Element SetBounds (int x, int y, int width, int height, ElementFxConfig animate)
 Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently. More...
 
virtual Element SetBounds (int x, int y, string width, string height)
 Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently. More...
 
virtual Element SetBounds (int x, int y, int width, string height)
 Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently. More...
 
virtual Element SetBounds (int x, int y, string width, int height)
 Sets the element's position and size in one shot. If animation is true then width, height, x and y will be animated concurrently. More...
 
virtual Element SetBox (Box box, bool adjust, bool animate)
 Sets the element's box. More...
 
virtual Element SetBox (Box box, bool adjust, ElementFxConfig animate)
 Sets the element's box. More...
 
virtual Element SetBox (Box box, bool adjust)
 Sets the element's box. More...
 
virtual Element SetBox (Box box)
 Sets the element's box. More...
 
virtual Element SetDisplayed (bool value)
 Sets the CSS display property. Uses originalDisplay if the specified value is a boolean true. More...
 
virtual Element SetDisplayed (string value)
 Sets the CSS display property. More...
 
virtual Element SetHeight (int value, bool animate)
 Set the height of this Element. More...
 
virtual Element SetHeight (int value, ElementFxConfig animate)
 Set the height of this Element. More...
 
virtual Element SetHeight (string value)
 Set the height of this Element. More...
 
virtual Element SetLeft (string left)
 Sets the element's left position directly using CSS style (instead of setX). More...
 
virtual Element SetLeftTop (string left, string top)
 Quick set left and top adding default units More...
 
virtual Element SetLocation (int x, int y, bool animate)
 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). More...
 
virtual Element SetLocation (int x, int y, ElementFxConfig animate)
 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). More...
 
virtual Element SetLocation (int x, int y)
 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). More...
 
virtual Element SetOpacity (double opacity, bool animate)
 Set the opacity of the element More...
 
virtual Element SetOpacity (double opacity)
 Set the opacity of the element More...
 
virtual Element SetOpacity (double opacity, ElementFxConfig animate)
 Set the opacity of the element More...
 
virtual Element SetRight (string right)
 Sets the element's CSS right style. More...
 
virtual Element SetSize (int width, int height, bool animate)
 Set the size of this Element. If animation is true, both width and height will be animated concurrently. More...
 
virtual Element SetSize (int width, int height, ElementFxConfig animate)
 Set the size of this Element. If animation is true, both width and height will be animated concurrently. More...
 
virtual Element SetSize (int width, int height)
 Set the size of this Element. If animation is true, both width and height will be animated concurrently. More...
 
virtual Element SetSize (string width, string height)
 Set the size of this Element. If animation is true, both width and height will be animated concurrently. More...
 
virtual Element SetSize (int width, string height)
 Set the size of this Element. If animation is true, both width and height will be animated concurrently. More...
 
virtual Element SetSize (string width, int height)
 Set the size of this Element. If animation is true, both width and height will be animated concurrently. More...
 
virtual Element SetStyle (JsonObject properties)
 Wrapper for setting style properties, also takes single object parameter of multiple styles. More...
 
virtual Element SetStyle (string property, string value)
 Wrapper for setting style properties, also takes single object parameter of multiple styles. More...
 
virtual Element SetTop (string top)
 Sets the element's top position directly using CSS style (instead of setY). More...
 
virtual Element SetValue (object value)
 Sets the .value property of the Elements dom object if it exists. More...
 
virtual Element SetVisibilityMode (VisibilityMode mode)
 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. More...
 
virtual Element SetVisible (bool visible, bool animate)
 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. More...
 
virtual Element SetVisible (bool visible, ElementFxConfig animate)
 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. More...
 
virtual Element SetWidth (int width, bool animate)
 Set the width of this Element. More...
 
virtual Element SetWidth (int width, ElementFxConfig animate)
 Set the width of this Element. More...
 
virtual Element SetWidth (string width)
 Set the width of this Element. More...
 
virtual Element SetX (int x, bool animate)
 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). More...
 
virtual Element SetX (int x, ElementFxConfig animate)
 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). More...
 
virtual Element SetX (int x)
 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). More...
 
virtual Element SetY (int y, bool animate)
 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). More...
 
virtual Element SetY (int y, ElementFxConfig animate)
 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). More...
 
virtual Element SetY (int y)
 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). More...
 
virtual Element SetXY (int x, int y, bool animate)
 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). More...
 
virtual Element SetXY (int x, int y, ElementFxConfig animate)
 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). More...
 
virtual Element SetXY (int x, int y)
 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). More...
 
virtual Element Select (string selector, bool unique, string root)
 Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in one statement More...
 
virtual Element Select (string selector, bool unique)
 Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in one statement More...
 
virtual Element Select (string selector)
 Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in one statement More...
 
virtual void SetCls (string className)
 Sets the specified CSS class on this element's DOM node. More...
 
virtual void SetCls (string[] className)
 Sets the specified CSS class on this element's DOM node. More...
 
virtual void SetHtml (string html)
 Sets the innerHTML of this element. More...
 
virtual Element SetMaxHeight (int height)
 Set the maximum height of this Element. More...
 
virtual Element SetMaxHeight (string height)
 Set the maximum height of this Element. More...
 
virtual Element SetMaxWidth (int width)
 Set the maximum width of this Element. More...
 
virtual Element SetMaxWidth (string width)
 Set the maximum width of this Element. More...
 
virtual Element SetMinHeight (int height)
 Set the minimum height of this Element. More...
 
virtual Element SetMinHeight (string height)
 Set the minimum height of this Element. More...
 
virtual Element SetMinWidth (int width)
 Set the minimum width of this Element. More...
 
virtual Element SetMinWidth (string width)
 Set the minimum width of this Element. More...
 
virtual Element SingleSelect (string selector)
 Selects first element based on the passed CSS selector More...
 
virtual Element SingleSelect (string selector, bool unique)
 Selects first element based on the passed CSS selector More...
 
virtual Element Show (bool animate)
 Show this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. More...
 
virtual Element Show (ElementFxConfig animate)
 Show this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. More...
 
virtual Element Show ()
 Show this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible. More...
 
virtual Element SwallowEvent (string eventName, bool preventDefault)
 Stops the specified event(s) from bubbling and optionally prevents the default action More...
 
virtual Element SwallowEvent (string eventName)
 Stops the specified event(s) from bubbling and optionally prevents the default action More...
 
virtual Element SwallowEvent (string[] eventNames, bool preventDefault)
 Stops the specified event(s) from bubbling and optionally prevents the default action More...
 
virtual Element SwallowEvent (string[] eventNames)
 Stops the specified event(s) from bubbling and optionally prevents the default action More...
 
virtual Element Toggle (bool animate)
 Toggles the element's visibility or display, depending on visibility mode. More...
 
virtual Element Toggle (ElementFxConfig animate)
 Toggles the element's visibility or display, depending on visibility mode. More...
 
virtual Element Toggle ()
 Toggles the element's visibility or display, depending on visibility mode. More...
 
virtual Element ToggleCls (string className)
 Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it). More...
 
virtual Element Unclip ()
 Return clipping (overflow) to original clipping before clip was called More...
 
virtual Element Unmask ()
 Removes a previously applied mask. More...
 
virtual Element Unselectable ()
 Disables text selection for this element (normalized across browsers) More...
 
virtual Element Up (string selector, int maxDepth)
 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. More...
 
virtual Element Up (string selector, Element maxDepth)
 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. More...
 
virtual Element Up (string selector)
 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. More...
 
virtual Element Update (string html, bool loadScripts, JFunction callback)
 Update the innerHTML of this element, optionally searching for and processing scripts More...
 
virtual Element Update (string html, bool loadScripts)
 Update the innerHTML of this element, optionally searching for and processing scripts More...
 
virtual void Update (string html)
 Update the innerHTML of this element, optionally searching for and processing scripts More...
 
virtual void UpdateText (string text)
 Updates the text value of this element. Replaces the content of this element with a single text node containing the passed text. More...
 
virtual Element Wrap (DomObject config)
 Creates and wraps this element with another element More...
 
virtual Element Wrap ()
 Creates and wraps this element with another element More...
 
virtual Element Add (string selector)
 Adds elements to this composite. More...
 
virtual Element Add (Element[] elements)
 Adds elements to this composite. More...
 
virtual Element Each (JFunction fn, string scope)
 Calls the passed function passing (el, this, index) for each element in this composite. More...
 
virtual Element Each (JFunction fn)
 Calls the passed function passing (el, this, index) for each element in this composite. More...
 
virtual Element Filter (string selector)
 Filters this composite to only elements that match the passed selector. More...
 
virtual Element Item (int index)
 Returns the Element object at the specified index More...
 
virtual Element RemoveElement (int index, bool removeDom)
 Removes the specified element(s). More...
 
virtual Element RemoveElement (int index)
 Removes the specified element(s). More...
 
virtual Element RemoveElement (string id, bool removeDom)
 Removes the specified element(s). More...
 
virtual Element RemoveElement (string id)
 Removes the specified element(s). More...
 
virtual Element FadeIn (FadeInConfig config)
 Fade an element in (from transparent to opaque). The ending opacity can be specified using the endOpacity config option. More...
 
virtual Element FadeOut (FadeOutConfig config)
 Fade an element out (from opaque to transparent). The ending opacity can be specified using the endOpacity config option. Note that IE may require useDisplay:true in order to redisplay correctly. More...
 
virtual Element Frame (string color, int count, FxConfig config)
 Shows a ripple of exploding, attenuating borders to draw attention to an Element More...
 
virtual Element Frame (string color, int count)
 Shows a ripple of exploding, attenuating borders to draw attention to an Element More...
 
virtual Element Frame (string color)
 Shows a ripple of exploding, attenuating borders to draw attention to an Element More...
 
virtual Element Frame ()
 Shows a ripple of exploding, attenuating borders to draw attention to an Element More...
 
virtual Element Ghost (string anchor, FxConfig config)
 Slides the element while fading it out of view. An anchor point can be optionally passed to set the ending point of the effect. More...
 
virtual Element Ghost (string anchor)
 Slides the element while fading it out of view. An anchor point can be optionally passed to set the ending point of the effect. More...
 
virtual Element Ghost ()
 Slides the element while fading it out of view. An anchor point can be optionally passed to set the ending point of the effect. More...
 
virtual Element Highlight (string color, HighlightConfig config)
 Highlights the Element by setting a color (applies to the background-color by default, but can be changed using the "attr" config option) and then fading back to the original color. If no original color is available, you should provide the "endColor" config option which will be cleared after the animation. More...
 
virtual Element Highlight (string color)
 Highlights the Element by setting a color (applies to the background-color by default, but can be changed using the "attr" config option) and then fading back to the original color. If no original color is available, you should provide the "endColor" config option which will be cleared after the animation. More...
 
virtual Element Highlight ()
 Highlights the Element by setting a color (applies to the background-color by default, but can be changed using the "attr" config option) and then fading back to the original color. If no original color is available, you should provide the "endColor" config option which will be cleared after the animation. More...
 
virtual Element Pause (int seconds)
 Creates a pause before any subsequent queued effects begin. If there are no effects queued after the pause it will have no effect. More...
 
virtual Element Puff (FxConfig config)
 Fades the element out while slowly expanding it in all directions. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. More...
 
virtual Element Puff ()
 Fades the element out while slowly expanding it in all directions. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. More...
 
virtual Element Scale (int? width, int? height, FxConfig config)
 Animates the transition of an element's dimensions from a starting height/width to an ending height/width. This method is a convenience implementation of shift. More...
 
virtual Element Scale (int? width, int? height)
 Animates the transition of an element's dimensions from a starting height/width to an ending height/width. This method is a convenience implementation of shift. More...
 
virtual Element SequenceFx ()
 Ensures that all effects queued after sequenceFx is called on the element are run in sequence. This is the opposite of syncFx. More...
 
virtual Element Shift (ShiftConfig config)
 Animates the transition of any combination of an element's dimensions, xy position and/or opacity. Any of these properties not specified in the config object will not be changed. This effect requires that at least one new dimension, position or opacity setting must be passed in on the config object in order for the function to have any effect. More...
 
virtual Element SlideIn (string anchor, FxConfig config)
 Slides the element into view. An anchor point can be optionally passed to set the point of origin for the slide effect. This function automatically handles wrapping the element with a fixed-size container if needed. See the Fx class overview for valid anchor point options. More...
 
virtual Element SlideIn (string anchor)
 Slides the element into view. An anchor point can be optionally passed to set the point of origin for the slide effect. This function automatically handles wrapping the element with a fixed-size container if needed. See the Fx class overview for valid anchor point options. More...
 
virtual Element SlideIn ()
 Slides the element into view. An anchor point can be optionally passed to set the point of origin for the slide effect. This function automatically handles wrapping the element with a fixed-size container if needed. See the Fx class overview for valid anchor point options. More...
 
virtual Element SlideOut (string anchor, FxConfig config)
 Slides the element out of view. An anchor point can be optionally passed to set the end point for the slide effect. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. This function automatically handles wrapping the element with a fixed-size container if needed. More...
 
virtual Element SlideOut (string anchor)
 Slides the element out of view. An anchor point can be optionally passed to set the end point for the slide effect. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. This function automatically handles wrapping the element with a fixed-size container if needed. More...
 
virtual Element SlideOut ()
 Slides the element out of view. An anchor point can be optionally passed to set the end point for the slide effect. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. This function automatically handles wrapping the element with a fixed-size container if needed. More...
 
virtual Element StopFx ()
 Stops any running effects and clears the element's internal effects queue if it contains any additional effects that haven't started yet. More...
 
virtual Element SwitchOff (FxConfig config)
 Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television). When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. More...
 
virtual Element SwitchOff ()
 Blinks the element as if it was clicked and then collapses on its center (similar to switching off a television). When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired. More...
 
virtual Element SyncFx ()
 Ensures that all effects queued after syncFx is called on the element are run concurrently. This is the opposite of sequenceFx. More...
 
- Public Member Functions inherited from Ext.Net.ScriptClass
virtual void Render ()
 
virtual void Set (string name, object value)
 
virtual void AddScript (string template, params object[] args)
 
virtual void AddScript (string script)
 

Static Public Member Functions

static implicit operator Element (Control control)
 
static Element Get (Control control)
 Retrieves Ext.Element objects. This method does not retrieve Components. This method retrieves Ext.Element objects which encapsulate DOM elements. Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM. More...
 
static Element Get (object node)
 Retrieves Ext.Element objects. This method does not retrieve Components. This method retrieves Ext.Element objects which encapsulate DOM elements. Uses simple caching to consistently return the same object. Automatically fixes if an object was recreated with the same id via AJAX or DOM. More...
 
static Element Fly (object node)
 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. More...
 
static Element Fly (Control control)
 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. More...
 
static Element Fly (object node, string named)
 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. More...
 
static Element Body ()
 Returns the current document body as an Ext.Element. More...
 
static Element Form ()
 Returns the current document body as an Ext.Element. More...
 
static Element Document ()
 Returns the current HTML document object as an Ext.Element. More...
 
static Element Head ()
 Returns the current HTML head object as an Ext.Element. More...
 
static Element Window ()
 Returns the current window object as an Ext.dom.Element. Typically used for attaching event listeners to the window. Note: since the window object is not an HTMLElement many of the Ext.dom.Element methods are not applicable and may throw errors if called on the returned Element instance. More...
 
static string ConvertToSafeJSHtml (string html)
 

Protected Member Functions

virtual void CallDelay (string name, params object[] args)
 
virtual int GetID ()
 
virtual void EnsureChaining ()
 
virtual Element ResetChain ()
 Ends the existing method chaining and starts a new More...
 
- Protected Member Functions inherited from Ext.Net.ScriptClass
virtual void CallTemplate (string template, string name, params object[] args)
 
virtual string FormatCall (string name, params object[] args)
 
virtual string FormatCallTemplate (string template, string name, params object[] args)
 
virtual string FormatArgs (object[] args)
 

Properties

virtual Dom Dom [get]
 
virtual StringBuilder Buffer [get]
 
virtual string? Descriptor [get]
 
virtual string RealDescriptor [get]
 
virtual string ID [get]
 
virtual bool Chaining [get, set]
 
virtual int Delay [get, set]
 
override string InstanceOf [get]
 
- Properties inherited from Ext.Net.ScriptClass
virtual string InstanceOf [get]
 
virtual Page Page [get]
 
virtual ResourceManager ResourceManager [get]
 
- Properties inherited from Ext.Net.IScriptable
string InstanceOf [get]
 
- Properties inherited from Ext.Net.IResourceManager
ResourceManager ResourceManager [get]
 Get an instance of the ResourceManager More...
 
Page Page [get]
 Get an instance of the Page More...
 

Detailed Description

Constructor & Destructor Documentation

◆ Element() [1/4]

Ext.Net.Element.Element ( string  el)
inline

◆ Element() [2/4]

Ext.Net.Element.Element ( string  el,
bool  chaining 
)
inline

◆ Element() [3/4]

Ext.Net.Element.Element ( AbstractComponent  el)
inline

◆ Element() [4/4]

Ext.Net.Element.Element ( AbstractComponent  el,
bool  chaining 
)
inline

Member Function Documentation

◆ Add() [1/2]

virtual Element Ext.Net.Element.Add ( Element[]  elements)
inlinevirtual

Adds elements to this composite.

Parameters
elementsan array of elements or an element
Returns
Elements

◆ Add() [2/2]

virtual Element Ext.Net.Element.Add ( string  selector)
inlinevirtual

Adds elements to this composite.

Parameters
selectorA string CSS selector
Returns
Elements

◆ AddCls() [1/2]

virtual Element Ext.Net.Element.AddCls ( string  className)
inlinevirtual

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

Parameters
classNameThe CSS class to add
Returns
This element

◆ AddCls() [2/2]

virtual Element Ext.Net.Element.AddCls ( string[]  classNames)
inlinevirtual

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

Parameters
classNamesThe array of CSS classes to add
Returns
This element

◆ AddClsOnClick() [1/3]

virtual Element Ext.Net.Element.AddClsOnClick ( string  className)
inlinevirtual

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)

Parameters
classNameThe CSS class to add on click
Returns
This element

◆ AddClsOnClick() [2/3]

virtual Element Ext.Net.Element.AddClsOnClick ( string  className,
JFunction  testFn 
)
inlinevirtual

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)

Parameters
classNameThe CSS class to add on click
testFnA test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added.
Returns
This element

◆ AddClsOnClick() [3/3]

virtual Element Ext.Net.Element.AddClsOnClick ( string  className,
JFunction  testFn,
string  scope 
)
inlinevirtual

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)

Parameters
classNameThe CSS class to add on click
testFnA test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added.
scopeThe scope to execute the testFn in.
Returns
This element

◆ AddClsOnFocus() [1/3]

virtual Element Ext.Net.Element.AddClsOnFocus ( string  className)
inlinevirtual

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

Parameters
classNameThe CSS class to add on focus
Returns
This element

◆ AddClsOnFocus() [2/3]

virtual Element Ext.Net.Element.AddClsOnFocus ( string  className,
JFunction  testFn 
)
inlinevirtual

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

Parameters
classNameThe CSS class to add on focus
testFnA test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added.
Returns
This element

◆ AddClsOnFocus() [3/3]

virtual Element Ext.Net.Element.AddClsOnFocus ( string  className,
JFunction  testFn,
string  scope 
)
inlinevirtual

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

Parameters
classNameThe CSS class to add on focus
testFnA test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added.
scopeThe scope to execute the testFn in.
Returns
This element

◆ AddClsOnOver() [1/3]

virtual Element Ext.Net.Element.AddClsOnOver ( string  className)
inlinevirtual

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

Parameters
classNameThe CSS class to add on over
Returns
This element

◆ AddClsOnOver() [2/3]

virtual Element Ext.Net.Element.AddClsOnOver ( string  className,
JFunction  testFn 
)
inlinevirtual

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

Parameters
classNameThe CSS class to add on over
testFnA test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added.
Returns
This element

◆ AddClsOnOver() [3/3]

virtual Element Ext.Net.Element.AddClsOnOver ( string  className,
JFunction  testFn,
string  scope 
)
inlinevirtual

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

Parameters
classNameThe CSS class to add on over
testFnA test function to execute before adding the class. The passed parameter will be the Element instance. If this functions returns false, the class will not be added.
scopeThe scope to execute the testFn in.
Returns
This element

◆ AddKeyListener()

virtual void Ext.Net.Element.AddKeyListener ( KeyBinding  key)
inlinevirtual

Convenience method for constructing a KeyMap

Parameters
keyKey config

◆ AddListener() [1/7]

virtual void Ext.Net.Element.AddListener ( ElementListeners  listeners)
inlinevirtual

Appends an events handlers to this element.

Parameters
listenersListeners object

◆ AddListener() [2/7]

virtual void Ext.Net.Element.AddListener ( string  eventName,
JFunction  fn 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invoke

◆ AddListener() [3/7]

virtual void Ext.Net.Element.AddListener ( string  eventName,
JFunction  fn,
string  scope 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..

◆ AddListener() [4/7]

virtual void Ext.Net.Element.AddListener ( string  eventName,
JFunction  fn,
string  scope,
HandlerConfig  options 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.

◆ AddListener() [5/7]

virtual void Ext.Net.Element.AddListener ( string  eventName,
string  fn 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.

◆ AddListener() [6/7]

virtual void Ext.Net.Element.AddListener ( string  eventName,
string  fn,
string  scope 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..

◆ AddListener() [7/7]

virtual void Ext.Net.Element.AddListener ( string  eventName,
string  fn,
string  scope,
HandlerConfig  options 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.

◆ AlignTo() [1/5]

virtual Element Ext.Net.Element.AlignTo ( Element  element)
inlinevirtual

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.

Parameters
elementThe element to align to.
Returns
This element

◆ AlignTo() [2/5]

virtual Element Ext.Net.Element.AlignTo ( Element  element,
string  position 
)
inlinevirtual

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.

Parameters
elementThe element to align to.
positionThe position to align to. The position parameter is optional, and can be specified in any one of the following formats: Blank: Defaults to aligning the element's top-left corner to the target's bottom-left corner ("tl-bl"). One anchor (deprecated): The passed anchor position is used as the target element's anchor point. The element being aligned will position its top-left corner (tl) to that point. This method has been deprecated in favor of the newer two anchor syntax below. Two anchors: If two values from the table below are passed separated by a dash, the first value is used as the element's anchor point, and the second value is used as the target's anchor point. In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than that specified in order to enforce the viewport constraints. Following are all of the supported anchor positions: 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: 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]);

Returns
This element

◆ AlignTo() [3/5]

virtual Element Ext.Net.Element.AlignTo ( Element  element,
string  position,
int[]  offsets 
)
inlinevirtual

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.

Parameters
elementThe element to align to.
positionThe position to align to. The position parameter is optional, and can be specified in any one of the following formats: Blank: Defaults to aligning the element's top-left corner to the target's bottom-left corner ("tl-bl"). One anchor (deprecated): The passed anchor position is used as the target element's anchor point. The element being aligned will position its top-left corner (tl) to that point. This method has been deprecated in favor of the newer two anchor syntax below. Two anchors: If two values from the table below are passed separated by a dash, the first value is used as the element's anchor point, and the second value is used as the target's anchor point. In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than that specified in order to enforce the viewport constraints. Following are all of the supported anchor positions: 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: 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]);

Parameters
offsetsOffset the positioning by [x, y]
Returns
This element

◆ AlignTo() [4/5]

virtual Element Ext.Net.Element.AlignTo ( Element  element,
string  position,
int[]  offsets,
bool  animate 
)
inlinevirtual

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.

Parameters
elementThe element to align to.
positionThe position to align to. The position parameter is optional, and can be specified in any one of the following formats: Blank: Defaults to aligning the element's top-left corner to the target's bottom-left corner ("tl-bl"). One anchor (deprecated): The passed anchor position is used as the target element's anchor point. The element being aligned will position its top-left corner (tl) to that point. This method has been deprecated in favor of the newer two anchor syntax below. Two anchors: If two values from the table below are passed separated by a dash, the first value is used as the element's anchor point, and the second value is used as the target's anchor point. In addition to the anchor points, the position parameter also supports the "?" character. If "?" is passed at the end of the position string, the element will attempt to align as specified, but the position will be adjusted to constrain to the viewport if necessary. Note that the element being aligned might be swapped to align to a different position than that specified in order to enforce the viewport constraints. Following are all of the supported anchor positions: 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: 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]);

Parameters
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
Returns
This element

◆ AlignTo() [5/5]

virtual Element Ext.Net.Element.AlignTo ( Element  element,
string  position,
int[]  offsets,
ElementFxConfig  animate 
)
inlinevirtual

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.

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateAnimation config
Returns
This element

◆ AnchorTo() [1/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
Returns
This element

◆ AnchorTo() [2/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
Returns
This element

◆ AnchorTo() [3/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
bool  animate 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
Returns
This element

◆ AnchorTo() [4/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
bool  animate,
bool  monitorScroll 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
Returns
This element

◆ AnchorTo() [5/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
bool  animate,
bool  monitorScroll,
JFunction  callback 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
callbackThe function to call after the animation finishes
Returns
This element

◆ AnchorTo() [6/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
bool  animate,
int  monitorScroll 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
Returns
This element

◆ AnchorTo() [7/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
bool  animate,
int  monitorScroll,
JFunction  callback 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
callbackThe function to call after the animation finishes
Returns
This element

◆ AnchorTo() [8/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
ElementFxConfig  animate 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
Returns
This element

◆ AnchorTo() [9/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
ElementFxConfig  animate,
bool  monitorScroll 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
Returns
This element

◆ AnchorTo() [10/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
ElementFxConfig  animate,
bool  monitorScroll,
JFunction  callback 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
callbackThe function to call after the animation finishes
Returns
This element

◆ AnchorTo() [11/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
ElementFxConfig  animate,
int  monitorScroll 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
Returns
This element

◆ AnchorTo() [12/12]

virtual Element Ext.Net.Element.AnchorTo ( Element  element,
string  position,
int[]  offsets,
ElementFxConfig  animate,
int  monitorScroll,
JFunction  callback 
)
inlinevirtual

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

Parameters
elementThe element to align to.
positionThe position to align to.
offsetsOffset the positioning by [x, y]
animateTrue for the default animation
monitorScrollTrue to monitor body scroll and reposition. If this parameter is a number, it is used as the buffer delay (defaults to 50ms).
callbackThe function to call after the animation finishes
Returns
This element

◆ Animate()

virtual Element Ext.Net.Element.Animate ( AnimConfig  args)
inlinevirtual

Perform custom animation on this element.

Parameters
argsThe animation control args
Returns
This element

◆ AppendChild() [1/2]

virtual Element Ext.Net.Element.AppendChild ( Element  element)
inlinevirtual

Appends the passed element(s) to this element

Parameters
elementelement
Returns
This element

◆ AppendChild() [2/2]

virtual Element Ext.Net.Element.AppendChild ( string  element)
inlinevirtual

Appends the passed element(s) to this element

Parameters
elementelement
Returns
This element

◆ AppendTo()

virtual Element Ext.Net.Element.AppendTo ( Element  element)
inlinevirtual

Appends this element to the passed element

Parameters
elementThe new parent element
Returns
This element

◆ ApplyStyles() [1/3]

virtual Element Ext.Net.Element.ApplyStyles ( JFunction  styles)
inlinevirtual

More flexible version of setStyle for setting style properties.

Parameters
stylesFunction which returns styles specification, like {width:"100px"}
Returns
This element

◆ ApplyStyles() [2/3]

virtual Element Ext.Net.Element.ApplyStyles ( JsonObject  styles)
inlinevirtual

More flexible version of setStyle for setting style properties.

Parameters
stylesA style specification object in the form {width:"100px"}
Returns
This element

◆ ApplyStyles() [3/3]

virtual Element Ext.Net.Element.ApplyStyles ( string  styles)
inlinevirtual

More flexible version of setStyle for setting style properties.

Parameters
stylesA style specification string, e.g. "width:100px"
Returns
This element

◆ Blur()

virtual Element Ext.Net.Element.Blur ( )
inlinevirtual

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

Returns
This element

◆ Body()

static Element Ext.Net.Element.Body ( )
inlinestatic

Returns the current document body as an Ext.Element.

Returns
Element

◆ BoxWrap() [1/2]

virtual Element Ext.Net.Element.BoxWrap ( )
inlinevirtual

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).

Returns
This element

◆ BoxWrap() [2/2]

virtual Element Ext.Net.Element.BoxWrap ( string  cssClass)
inlinevirtual

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).

Parameters
cssClassA base CSS class to apply to the containing wrapper element (defaults to 'x-box'). Note that there are a number of CSS rules that are dependent on this name to make the overall effect work, so if you supply an alternate base class, make sure you also supply all of the necessary rules.
Returns
This element

◆ Call() [1/2]

override void Ext.Net.Element.Call ( string  name)
inlinevirtual

Reimplemented from Ext.Net.ScriptClass.

◆ Call() [2/2]

override void Ext.Net.Element.Call ( string  name,
params object[]  args 
)
inlinevirtual

Reimplemented from Ext.Net.ScriptClass.

◆ CallDelay()

virtual void Ext.Net.Element.CallDelay ( string  name,
params object[]  args 
)
inlineprotectedvirtual

◆ Center() [1/2]

virtual Element Ext.Net.Element.Center ( )
inlinevirtual

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

Returns
This element

◆ Center() [2/2]

virtual Element Ext.Net.Element.Center ( Element  centerIn)
inlinevirtual

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

Parameters
centerInThe element in which to center the element.
Returns
This element

◆ ChainOff()

virtual Element Ext.Net.Element.ChainOff ( )
inlinevirtual

Turn off script chaining

Returns
this element

◆ ChainOn()

virtual Element Ext.Net.Element.ChainOn ( )
inlinevirtual

Turn on script chaining

Returns
this element

◆ Child()

virtual Element Ext.Net.Element.Child ( string  selector)
inlinevirtual

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

Parameters
selectorThe CSS selector
Returns
The child Ext.Element

◆ Clean() [1/2]

virtual Element Ext.Net.Element.Clean ( )
inlinevirtual

Removes worthless text nodes

Returns
This element

◆ Clean() [2/2]

virtual Element Ext.Net.Element.Clean ( bool  forceReclean)
inlinevirtual

Removes worthless text nodes

Parameters
forceRecleanBy default the element keeps track if it has been cleaned already so you can call this over and over. However, if you update the element and need to force a reclean, you can pass true.
Returns
This element

◆ ClearOpacity()

virtual Element Ext.Net.Element.ClearOpacity ( )
inlinevirtual

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

Returns
This element

◆ ClearPositioning()

virtual Element Ext.Net.Element.ClearPositioning ( string  value)
inlinevirtual

Clear positioning back to the default when the document was loaded

Parameters
valueThe value to use for the left,right,top,bottom, defaults to '' (empty string). You could use 'auto'.
Returns
This element

◆ Clip()

virtual Element Ext.Net.Element.Clip ( )
inlinevirtual

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

Returns
This element

◆ ConvertToSafeJSHtml()

static string Ext.Net.Element.ConvertToSafeJSHtml ( string  html)
inlinestatic

◆ CreateChild() [1/2]

virtual Element Ext.Net.Element.CreateChild ( DomObject  config)
inlinevirtual

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

Parameters
configDomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be automatically generated with the specified attributes.
Returns
The new child element

◆ CreateChild() [2/2]

virtual Element Ext.Net.Element.CreateChild ( DomObject  config,
Element  insertBefore 
)
inlinevirtual

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

Parameters
configDomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be automatically generated with the specified attributes.
insertBeforea child element of this element
Returns
The new child element

◆ CreateProxy() [1/6]

virtual Element Ext.Net.Element.CreateProxy ( DomObject  config)
inlinevirtual

Creates a proxy element of this element

Parameters
configThe DomHelper config object of the proxy element
Returns
The new proxy element

◆ CreateProxy() [2/6]

virtual Element Ext.Net.Element.CreateProxy ( DomObject  config,
Element  renderTo,
bool  matchBox 
)
inlinevirtual

Creates a proxy element of this element

Parameters
configThe DomHelper config object of the proxy element
renderToThe element to render the proxy to (defaults to document.body)
matchBoxTrue to align and size the proxy to this element now (defaults to false)
Returns
The new proxy element

◆ CreateProxy() [3/6]

virtual Element Ext.Net.Element.CreateProxy ( DomObject  config,
string  renderTo,
bool  matchBox 
)
inlinevirtual

Creates a proxy element of this element

Parameters
configThe DomHelper config object of the proxy element
renderToThe element id to render the proxy to (defaults to document.body)
matchBoxTrue to align and size the proxy to this element now (defaults to false)
Returns
The new proxy element

◆ CreateProxy() [4/6]

virtual Element Ext.Net.Element.CreateProxy ( string  className)
inlinevirtual

Creates a proxy element of this element

Parameters
classNameThe class name of the proxy element
Returns
The new proxy element

◆ CreateProxy() [5/6]

virtual Element Ext.Net.Element.CreateProxy ( string  className,
Element  renderTo,
bool  matchBox 
)
inlinevirtual

Creates a proxy element of this element

Parameters
classNameThe class name of the proxy element
renderToThe element to render the proxy to (defaults to document.body)
matchBoxTrue to align and size the proxy to this element now (defaults to false)
Returns
The new proxy element

◆ CreateProxy() [6/6]

virtual Element Ext.Net.Element.CreateProxy ( string  className,
string  renderTo,
bool  matchBox 
)
inlinevirtual

Creates a proxy element of this element

Parameters
classNameThe class name of the proxy element
renderToThe element id to render the proxy to (defaults to document.body)
matchBoxTrue to align and size the proxy to this element now (defaults to false)
Returns
The new proxy element

◆ CreateShim()

virtual Element Ext.Net.Element.CreateShim ( )
inlinevirtual

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

Returns
The new shim element

◆ DelayOff()

virtual Element Ext.Net.Element.DelayOff ( )
inlinevirtual

Turn off delay execution

Returns
this element

◆ DelayOn()

virtual Element Ext.Net.Element.DelayOn ( int  delay)
inlinevirtual

Turn on delay execution for subsequent methods calling

Parameters
delayDelay amount
Returns
this element

◆ Document()

static Element Ext.Net.Element.Document ( )
inlinestatic

Returns the current HTML document object as an Ext.Element.

Returns
Element

◆ Down()

virtual Element Ext.Net.Element.Down ( string  selector)
inlinevirtual

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

Parameters
selectorThe CSS selector
Returns
This element

◆ Each() [1/2]

virtual Element Ext.Net.Element.Each ( JFunction  fn)
inlinevirtual

Calls the passed function passing (el, this, index) for each element in this composite.

Parameters
fnThe function to call
Returns
Elements

◆ Each() [2/2]

virtual Element Ext.Net.Element.Each ( JFunction  fn,
string  scope 
)
inlinevirtual

Calls the passed function passing (el, this, index) for each element in this composite.

Parameters
fnThe function to call
scopeThe this object (defaults to the element)
Returns
Elements

◆ EnableDisplayMode() [1/2]

virtual Element Ext.Net.Element.EnableDisplayMode ( )
inlinevirtual

Convenience method for setVisibilityMode(Element.DISPLAY)

Returns
This element

◆ EnableDisplayMode() [2/2]

virtual Element Ext.Net.Element.EnableDisplayMode ( string  display)
inlinevirtual

Convenience method for setVisibilityMode(Element.DISPLAY)

Parameters
displayWhat to set display to when visible
Returns
This element

◆ EnsureChaining()

virtual void Ext.Net.Element.EnsureChaining ( )
inlineprotectedvirtual

◆ FadeIn()

virtual Element Ext.Net.Element.FadeIn ( FadeInConfig  config)
inlinevirtual

Fade an element in (from transparent to opaque). The ending opacity can be specified using the endOpacity config option.

Parameters
configObject literal with any of the Fx config options
Returns
The Element

◆ FadeOut()

virtual Element Ext.Net.Element.FadeOut ( FadeOutConfig  config)
inlinevirtual

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

Parameters
configObject literal with any of the Fx config options
Returns
The Element

◆ Filter()

virtual Element Ext.Net.Element.Filter ( string  selector)
inlinevirtual

Filters this composite to only elements that match the passed selector.

Parameters
selectorA string CSS selector
Returns
Elements

◆ FindParent() [1/3]

virtual Element Ext.Net.Element.FindParent ( string  selector)
inlinevirtual

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
selectorThe simple selector to test
Returns
The matching DOM node

◆ FindParent() [2/3]

virtual Element Ext.Net.Element.FindParent ( string  selector,
Element  maxDepth 
)
inlinevirtual

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
selectorThe simple selector to test
maxDepthThe max depth to search as a element (defaults to 50 || document.body)
Returns
The matching DOM node

◆ FindParent() [3/3]

virtual Element Ext.Net.Element.FindParent ( string  selector,
int  maxDepth 
)
inlinevirtual

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
selectorThe simple selector to test
maxDepthThe max depth to search as a number (defaults to 50 || document.body)
Returns
The matching DOM node

◆ FindParentNode() [1/3]

virtual Element Ext.Net.Element.FindParentNode ( string  selector)
inlinevirtual

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

Parameters
selectorThe simple selector to test
Returns
The matching DOM node

◆ FindParentNode() [2/3]

virtual Element Ext.Net.Element.FindParentNode ( string  selector,
Element  maxDepth 
)
inlinevirtual

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

Parameters
selectorThe simple selector to test
maxDepthThe max depth to search as a element (defaults to 10 || document.body)
Returns
The matching DOM node

◆ FindParentNode() [3/3]

virtual Element Ext.Net.Element.FindParentNode ( string  selector,
int  maxDepth 
)
inlinevirtual

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

Parameters
selectorThe simple selector to test
maxDepthThe max depth to search as a number (defaults to 10 || document.body)
Returns
The matching DOM node

◆ First() [1/2]

virtual Element Ext.Net.Element.First ( )
inlinevirtual

Gets the first child, skipping text nodes

Returns
The first child or null

◆ First() [2/2]

virtual Element Ext.Net.Element.First ( string  selector)
inlinevirtual

Gets the first child, skipping text nodes

Parameters
selectorFind the next sibling that matches the passed simple selector
Returns
The first child or null

◆ Fly() [1/3]

static Element Ext.Net.Element.Fly ( Control  control)
inlinestatic

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
controlThe Control to get as an Element object.
Returns
Element

◆ Fly() [2/3]

static Element Ext.Net.Element.Fly ( object  node)
inlinestatic

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
nodeThe id of the node or any object which represents an Ext.Element
Returns
Element

◆ Fly() [3/3]

static Element Ext.Net.Element.Fly ( object  node,
string  named 
)
inlinestatic

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
nodeThe id of the node or any object which represents an Ext.Element
namedAllows for creation of named reusable flyweights to prevent conflicts
Returns
Element

◆ Focus() [1/2]

virtual Element Ext.Net.Element.Focus ( )
inlinevirtual

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

Returns
This element

◆ Focus() [2/2]

virtual Element Ext.Net.Element.Focus ( int  defer)
inlinevirtual

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

Parameters
deferMilliseconds to defer the focus
Returns
This element

◆ Form()

static Element Ext.Net.Element.Form ( )
inlinestatic

Returns the current document body as an Ext.Element.

Returns
Element

◆ Frame() [1/4]

virtual Element Ext.Net.Element.Frame ( )
inlinevirtual

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

Returns
The Element

◆ Frame() [2/4]

virtual Element Ext.Net.Element.Frame ( string  color)
inlinevirtual

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

Parameters
colorThe color of the border. Should be a 6 char hex color without the leading # (defaults to light blue: 'C3DAF9').
Returns
The Element

◆ Frame() [3/4]

virtual Element Ext.Net.Element.Frame ( string  color,
int  count 
)
inlinevirtual

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

Parameters
colorThe color of the border. Should be a 6 char hex color without the leading # (defaults to light blue: 'C3DAF9').
countThe number of ripples to display (defaults to 1)
Returns
The Element

◆ Frame() [4/4]

virtual Element Ext.Net.Element.Frame ( string  color,
int  count,
FxConfig  config 
)
inlinevirtual

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

Parameters
colorThe color of the border. Should be a 6 char hex color without the leading # (defaults to light blue: 'C3DAF9').
countThe number of ripples to display (defaults to 1)
configObject literal with any of the Fx config options
Returns
The Element

◆ Get() [1/2]

static Element Ext.Net.Element.Get ( Control  control)
inlinestatic

Retrieves Ext.Element objects. This method does not retrieve Components. This method retrieves Ext.Element objects which encapsulate DOM elements. 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
controlThe Control to get as an Element object.
Returns
Element

◆ Get() [2/2]

static Element Ext.Net.Element.Get ( object  node)
inlinestatic

Retrieves Ext.Element objects. This method does not retrieve Components. This method retrieves Ext.Element objects which encapsulate DOM elements. 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
nodeThe id of the node or any object which represents an Ext.Element
Returns
Element

◆ GetDom()

virtual Dom Ext.Net.Element.GetDom ( )
inlinevirtual

◆ GetID()

virtual int Ext.Net.Element.GetID ( )
inlineprotectedvirtual

◆ Ghost() [1/3]

virtual Element Ext.Net.Element.Ghost ( )
inlinevirtual

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

Returns
The Element

◆ Ghost() [2/3]

virtual Element Ext.Net.Element.Ghost ( string  anchor)
inlinevirtual

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

Parameters
anchorOne of the valid Fx anchor positions (defaults to bottom: 'b')
Returns
The Element

◆ Ghost() [3/3]

virtual Element Ext.Net.Element.Ghost ( string  anchor,
FxConfig  config 
)
inlinevirtual

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

Parameters
anchorOne of the valid Fx anchor positions (defaults to bottom: 'b')
configObject literal with any of the Fx config options
Returns
The Element

◆ Head()

static Element Ext.Net.Element.Head ( )
inlinestatic

Returns the current HTML head object as an Ext.Element.

Returns

◆ Hide() [1/3]

virtual Element Ext.Net.Element.Hide ( )
inlinevirtual

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

Returns
This element

◆ Hide() [2/3]

virtual Element Ext.Net.Element.Hide ( bool  animate)
inlinevirtual

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

Parameters
animatetrue for the default animation
Returns
This element

◆ Hide() [3/3]

virtual Element Ext.Net.Element.Hide ( ElementFxConfig  animate)
inlinevirtual

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

Parameters
animatetrue for the default animation
Returns
This element

◆ Highlight() [1/3]

virtual Element Ext.Net.Element.Highlight ( )
inlinevirtual

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

Returns
The Element

◆ Highlight() [2/3]

virtual Element Ext.Net.Element.Highlight ( string  color)
inlinevirtual

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

Parameters
colorThe highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c')
Returns
The Element

◆ Highlight() [3/3]

virtual Element Ext.Net.Element.Highlight ( string  color,
HighlightConfig  config 
)
inlinevirtual

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

Parameters
colorThe highlight color. Should be a 6 char hex color without the leading # (defaults to yellow: 'ffff9c')
configObject literal with any of the Fx config options
Returns
The Element

◆ Hover() [1/3]

virtual Element Ext.Net.Element.Hover ( JFunction  overFn,
JFunction  outFn 
)
inlinevirtual

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

Parameters
overFnThe function to call when the mouse enters the Element.
outFnThe function to call when the mouse leaves the Element.
Returns
This element

◆ Hover() [2/3]

virtual Element Ext.Net.Element.Hover ( JFunction  overFn,
JFunction  outFn,
string  scope 
)
inlinevirtual

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

Parameters
overFnThe function to call when the mouse enters the Element.
outFnThe function to call when the mouse leaves the Element.
scopeThe scope (this reference) in which the functions are executed. Defaults to the Element's DOM element.
Returns
This element

◆ Hover() [3/3]

virtual Element Ext.Net.Element.Hover ( JFunction  overFn,
JFunction  outFn,
string  scope,
HandlerConfig  options 
)
inlinevirtual

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

Parameters
overFnThe function to call when the mouse enters the Element.
outFnThe function to call when the mouse leaves the Element.
scopeThe scope (this reference) in which the functions are executed. Defaults to the Element's DOM element.
optionsOptions for the listener.
Returns
This element

◆ InitDD()

virtual Element Ext.Net.Element.InitDD ( string  group,
DD  config,
JsonObject  overrides 
)
inlinevirtual

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

Parameters
groupThe group the DD object is member of
configThe DD config object
overridesAn object containing methods to override/implement on the DD object
Returns
This element

◆ InitDDProxy()

virtual Element Ext.Net.Element.InitDDProxy ( string  group,
DDProxy  config,
JsonObject  overrides 
)
inlinevirtual

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

Parameters
groupThe group the DDProxy object is member of
configThe DDProxy config object
overridesAn object containing methods to override/implement on the DDProxy object
Returns
This element

◆ InitDDTarget()

virtual Element Ext.Net.Element.InitDDTarget ( string  group,
DDTarget  config,
JsonObject  overrides 
)
inlinevirtual

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

Parameters
groupThe group the DDTarget object is member of
configThe DDTarget config object
overridesAn object containing methods to override/implement on the DDTarget object
Returns
This element

◆ InsertAfter()

virtual Element Ext.Net.Element.InsertAfter ( Element  element)
inlinevirtual

Inserts this element after the passed element in the DOM

Parameters
elementThe element to insert after
Returns
This element

◆ InsertBefore()

virtual Element Ext.Net.Element.InsertBefore ( Element  element)
inlinevirtual

Inserts this element before the passed element in the DOM

Parameters
elementThe element before which this element will be inserted
Returns
This element

◆ InsertFirst() [1/3]

virtual Element Ext.Net.Element.InsertFirst ( DomObject  element)
inlinevirtual

Creates an DomHelper config as the first child of this element

Parameters
elementDomHelper config to create and insert
Returns
This element

◆ InsertFirst() [2/3]

virtual Element Ext.Net.Element.InsertFirst ( Element  element)
inlinevirtual

Inserts an element as the first child of this element

Parameters
elementThe id or element to insert
Returns
This element

◆ InsertFirst() [3/3]

virtual Element Ext.Net.Element.InsertFirst ( string  element)
inlinevirtual

Inserts an element as the first child of this element

Parameters
elementThe id or element to insert
Returns
This element

◆ InsertHtml()

virtual Element Ext.Net.Element.InsertHtml ( InsertPosition  where,
string  html 
)
inlinevirtual

Inserts an html fragment into this element

Parameters
whereWhere to insert the html in relation to this element-beforeBegin, afterBegin, beforeEnd, afterEnd.
htmlThe HTML fragment
Returns
The inserted node (or nearest related if more than 1 inserted)

◆ InsertSibling() [1/6]

virtual Element Ext.Net.Element.InsertSibling ( DomObject  element)
inlinevirtual

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

Parameters
elementDomHelper config to create and insert
Returns
The inserted Element

◆ InsertSibling() [2/6]

virtual Element Ext.Net.Element.InsertSibling ( DomObject  element,
InsertPosition  where 
)
inlinevirtual

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

Parameters
elementDomHelper config to create and insert
where'before' or 'after' defaults to before
Returns
The inserted Element

◆ InsertSibling() [3/6]

virtual Element Ext.Net.Element.InsertSibling ( Element  element)
inlinevirtual

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

Parameters
elementThe id or element to insert
Returns
The inserted Element

◆ InsertSibling() [4/6]

virtual Element Ext.Net.Element.InsertSibling ( Element  element,
InsertPosition  where 
)
inlinevirtual

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

Parameters
elementThe id or element to insert
where'before' or 'after' defaults to before
Returns
The inserted Element

◆ InsertSibling() [5/6]

virtual Element Ext.Net.Element.InsertSibling ( string  element)
inlinevirtual

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

Parameters
elementThe id or element to insert
Returns
The inserted Element

◆ InsertSibling() [6/6]

virtual Element Ext.Net.Element.InsertSibling ( string  element,
InsertPosition  where 
)
inlinevirtual

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

Parameters
elementThe id or element to insert
where'before' or 'after' defaults to before
Returns
The inserted Element

◆ Item()

virtual Element Ext.Net.Element.Item ( int  index)
inlinevirtual

Returns the Element object at the specified index

Parameters
index
Returns

◆ Last() [1/2]

virtual Element Ext.Net.Element.Last ( )
inlinevirtual

Gets the last child, skipping text nodes

Returns
The last child or null

◆ Last() [2/2]

virtual Element Ext.Net.Element.Last ( string  selector)
inlinevirtual

Gets the last child, skipping text nodes

Parameters
selectorFind the previous sibling that matches the passed simple selector
Returns
The last child or null

◆ Load()

virtual Element Ext.Net.Element.Load ( BaseLoadConfig  config)
inlinevirtual

Direct access to the Updater Ext.Updater.update method.

Parameters
configLoad config
Returns
This element

◆ Mask() [1/3]

virtual Element Ext.Net.Element.Mask ( )
inlinevirtual

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.

Returns
The mask element

◆ Mask() [2/3]

virtual Element Ext.Net.Element.Mask ( string  msg)
inlinevirtual

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
msgA message to display in the mask
Returns
The mask element

◆ Mask() [3/3]

virtual Element Ext.Net.Element.Mask ( string  msg,
string  msgCls 
)
inlinevirtual

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
msgA message to display in the mask
msgClsA css class to apply to the msg element
Returns
The mask element

◆ Move() [1/3]

virtual Element Ext.Net.Element.Move ( Direction  direction,
int  distance 
)
inlinevirtual

Move this element relative to its current position.

Parameters
directionMoving direction
distanceHow far to move the element in pixels
Returns
This element

◆ Move() [2/3]

virtual Element Ext.Net.Element.Move ( Direction  direction,
int  distance,
bool  animate 
)
inlinevirtual

Move this element relative to its current position.

Parameters
directionMoving direction
distanceHow far to move the element in pixels
animatetrue for the default animation
Returns
This element

◆ Move() [3/3]

virtual Element Ext.Net.Element.Move ( Direction  direction,
int  distance,
ElementFxConfig  animate 
)
inlinevirtual

Move this element relative to its current position.

Parameters
directionMoving direction
distanceHow far to move the element in pixels
animatestandard Element animation config object
Returns
This element

◆ MoveTo() [1/3]

virtual Element Ext.Net.Element.MoveTo ( int  x,
int  y 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
Returns
This element

◆ MoveTo() [2/3]

virtual Element Ext.Net.Element.MoveTo ( int  x,
int  y,
bool  animate 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
animateTrue for the default animation
Returns
This element

◆ MoveTo() [3/3]

virtual Element Ext.Net.Element.MoveTo ( int  x,
int  y,
ElementFxConfig  animate 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
animatestandard Element animation config object
Returns
This element

◆ Next() [1/2]

virtual Element Ext.Net.Element.Next ( )
inlinevirtual

Gets the next sibling, skipping text nodes

Returns
This element

◆ Next() [2/2]

virtual Element Ext.Net.Element.Next ( string  selector)
inlinevirtual

Gets the next sibling, skipping text nodes

Parameters
selectorFind the next sibling that matches the passed simple selector
Returns
This element

◆ On() [1/7]

virtual void Ext.Net.Element.On ( ElementListeners  listeners)
inlinevirtual

Appends an events handlers to this element.

Parameters
listenersListeners object

◆ On() [2/7]

virtual void Ext.Net.Element.On ( string  eventName,
JFunction  fn 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invoke

◆ On() [3/7]

virtual void Ext.Net.Element.On ( string  eventName,
JFunction  fn,
string  scope 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..

◆ On() [4/7]

virtual void Ext.Net.Element.On ( string  eventName,
JFunction  fn,
string  scope,
HandlerConfig  options 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.

◆ On() [5/7]

virtual void Ext.Net.Element.On ( string  eventName,
string  fn 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.

◆ On() [6/7]

virtual void Ext.Net.Element.On ( string  eventName,
string  fn,
string  scope 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element..

◆ On() [7/7]

virtual void Ext.Net.Element.On ( string  eventName,
string  fn,
string  scope,
HandlerConfig  options 
)
inlinevirtual

Appends an event handler to this element.

Parameters
eventNameThe type of event to handle
fnThe handler function the event invokes. This function is passed the following parameters: evt : EventObject The EventObject describing the event. el : Element The Element which was the target of the event. Note that this may be filtered by using the delegate option. o : Object The options object from the addListener call.
scopeThe scope (this reference) in which the handler function is executed. If omitted, defaults to this Element.
optionsAn object containing handler configuration properties.

◆ operator Element()

static implicit Ext.Net.Element.operator Element ( Control  control)
inlinestatic

◆ Parent() [1/2]

virtual Element Ext.Net.Element.Parent ( )
inlinevirtual

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

Returns
This element

◆ Parent() [2/2]

virtual Element Ext.Net.Element.Parent ( string  selector)
inlinevirtual

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

Parameters
selectorFind a parent node that matches the passed simple selector
Returns
This element

◆ Pause()

virtual Element Ext.Net.Element.Pause ( int  seconds)
inlinevirtual

Creates a pause before any subsequent queued effects begin. If there are no effects queued after the pause it will have no effect.

Parameters
secondsThe length of time to pause (in seconds)
Returns
The Element

◆ Position() [1/4]

virtual Element Ext.Net.Element.Position ( )
inlinevirtual

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.

Returns
This element

◆ Position() [2/4]

virtual Element Ext.Net.Element.Position ( CssPosition  position)
inlinevirtual

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
positionPositioning to use "relative", "absolute" or "fixed"
Returns
This element

◆ Position() [3/4]

virtual Element Ext.Net.Element.Position ( CssPosition  position,
int  zIndex 
)
inlinevirtual

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
positionPositioning to use "relative", "absolute" or "fixed"
zIndexThe zIndex to apply
Returns
This element

◆ Position() [4/4]

virtual Element Ext.Net.Element.Position ( CssPosition  position,
int  zIndex,
int  x,
int  y 
)
inlinevirtual

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
positionPositioning to use "relative", "absolute" or "fixed"
zIndexThe zIndex to apply
xSet the page X position
ySet the page Y position
Returns
This element

◆ Prev() [1/2]

virtual Element Ext.Net.Element.Prev ( )
inlinevirtual

Gets the previous sibling, skipping text nodes

Returns
This element

◆ Prev() [2/2]

virtual Element Ext.Net.Element.Prev ( string  selector)
inlinevirtual

Gets the previous sibling, skipping text nodes

Parameters
selectorFind the previous sibling that matches the passed simple selector
Returns
This element

◆ Puff() [1/2]

virtual Element Ext.Net.Element.Puff ( )
inlinevirtual

Fades the element out while slowly expanding it in all directions. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired.

Returns
The Element

◆ Puff() [2/2]

virtual Element Ext.Net.Element.Puff ( FxConfig  config)
inlinevirtual

Fades the element out while slowly expanding it in all directions. When the effect is completed, the element will be hidden (visibility = 'hidden') but block elements will still take up space in the document. The element must be removed from the DOM using the 'remove' config option if desired.

Parameters
configObject literal with any of the Fx config options
Returns
The Element

◆ PurgeAllListeners()

virtual void Ext.Net.Element.PurgeAllListeners ( )
inlinevirtual

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

◆ RadioClass() [1/2]

virtual Element Ext.Net.Element.RadioClass ( string  className)
inlinevirtual

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

Parameters
classNameThe CSS class to add
Returns
This element

◆ RadioClass() [2/2]

virtual Element Ext.Net.Element.RadioClass ( string[]  classNames)
inlinevirtual

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

Parameters
classNamesThe array of CSS classes to add
Returns
This element

◆ RelayEvent() [1/2]

virtual Element Ext.Net.Element.RelayEvent ( string  eventName,
Observable  observable 
)
inlinevirtual

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
eventNameThe type of event to relay
observableAny object that extends Ext.util.Observable that will provide the context for firing the relayed event
Returns
This element

◆ RelayEvent() [2/2]

virtual Element Ext.Net.Element.RelayEvent ( string  eventName,
string  observable 
)
inlinevirtual

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
eventNameThe type of event to relay
observableAny object that extends Ext.util.Observable that will provide the context for firing the relayed event
Returns
This element

◆ Remove()

virtual Element Ext.Net.Element.Remove ( )
inlinevirtual

Removes this element from the DOM and deletes it from the cache

◆ RemoveAllListeners()

virtual Element Ext.Net.Element.RemoveAllListeners ( )
inlinevirtual

Removes all previous added listeners from this element

◆ RemoveAttribute()

virtual Element Ext.Net.Element.RemoveAttribute ( string  attr)
inlinevirtual

Removes the attribute from an underlying DOM object of this element.

Parameters
attrThe attribute's name.
Returns
This element

◆ RemoveCls() [1/2]

virtual Element Ext.Net.Element.RemoveCls ( string  className)
inlinevirtual

Removes one or more CSS classes from the element.

Parameters
classNameThe CSS class to remove
Returns
This element

◆ RemoveCls() [2/2]

virtual Element Ext.Net.Element.RemoveCls ( string[]  classNames)
inlinevirtual

Removes one or more CSS classes from the element.

Parameters
classNamesThe array of CSS classes to remove
Returns
This element

◆ RemoveElement() [1/4]

virtual Element Ext.Net.Element.RemoveElement ( int  index)
inlinevirtual

Removes the specified element(s).

Parameters
indexthe index of the element in this composite
Returns

◆ RemoveElement() [2/4]

virtual Element Ext.Net.Element.RemoveElement ( int  index,
bool  removeDom 
)
inlinevirtual

Removes the specified element(s).

Parameters
indexthe index of the element in this composite
removeDomTrue to also remove the element from the document
Returns

◆ RemoveElement() [3/4]

virtual Element Ext.Net.Element.RemoveElement ( string  id)
inlinevirtual

Removes the specified element(s).

Parameters
idThe id of an element
Returns

◆ RemoveElement() [4/4]

virtual Element Ext.Net.Element.RemoveElement ( string  id,
bool  removeDom 
)
inlinevirtual

Removes the specified element(s).

Parameters
idThe id of an element
removeDomTrue to also remove the element from the document
Returns

◆ RemoveListener() [1/2]

virtual void Ext.Net.Element.RemoveListener ( string  eventName,
string  funcName 
)
inlinevirtual

Removes an event handler from this element. Note: if a scope was explicitly specified when adding the listener, the same scope must be specified here.

Parameters
eventNamethe type of event to remove
funcNamethe method the event invokes

◆ RemoveListener() [2/2]

virtual void Ext.Net.Element.RemoveListener ( string  eventName,
string  funcName,
string  scope 
)
inlinevirtual

Removes an event handler from this element. Note: if a scope was explicitly specified when adding the listener, the same scope must be specified here.

Parameters
eventNamethe type of event to remove
funcNamethe method the event invokes
scopeThe scope (The this reference) of the handler function. Defaults to this Element.

◆ RemoveStyleProperty()

virtual Element Ext.Net.Element.RemoveStyleProperty ( string  prop)
inlinevirtual

Removes the style's property from this element.

Parameters
propThe style's property name. For example, "background-color".
Returns
This element

◆ Repaint()

virtual Element Ext.Net.Element.Repaint ( )
inlinevirtual

Forces the browser to repaint this element

◆ Replace()

virtual Element Ext.Net.Element.Replace ( Element  element)
inlinevirtual

Replaces the passed element with this element

Parameters
elementThe element to replace
Returns
This element

◆ ReplaceClass()

virtual Element Ext.Net.Element.ReplaceClass ( string  oldClassName,
string  newClassName 
)
inlinevirtual

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

Parameters
oldClassNameThe CSS class to replace
newClassNameThe replacement CSS class
Returns
This element

◆ ReplaceWith() [1/2]

virtual Element Ext.Net.Element.ReplaceWith ( DomObject  element)
inlinevirtual

Replaces this element with the passed element

Parameters
elementThe new element or a DomHelper config of an element to create
Returns
This element

◆ ReplaceWith() [2/2]

virtual Element Ext.Net.Element.ReplaceWith ( Element  element)
inlinevirtual

Replaces this element with the passed element

Parameters
elementThe new element or a DomHelper config of an element to create
Returns
This element

◆ ResetChain()

virtual Element Ext.Net.Element.ResetChain ( )
inlineprotectedvirtual

Ends the existing method chaining and starts a new

Returns
this element

◆ Scale() [1/2]

virtual Element Ext.Net.Element.Scale ( int?  width,
int?  height 
)
inlinevirtual

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

Parameters
widthThe new width (pass undefined to keep the original width)
heightThe new height (pass undefined to keep the original height)
Returns
The Element

◆ Scale() [2/2]

virtual Element Ext.Net.Element.Scale ( int?  width,
int?  height,
FxConfig  config 
)
inlinevirtual

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

Parameters
widthThe new width (pass undefined to keep the original width)
heightThe new height (pass undefined to keep the original height)
configObject literal with any of the Fx config options
Returns
The Element

◆ Scroll() [1/3]

virtual Element Ext.Net.Element.Scroll ( Direction  direction,
int  distance 
)
inlinevirtual

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

Parameters
directionScroll direction
distanceHow far to scroll the element in pixels
Returns
This element

◆ Scroll() [2/3]

virtual Element Ext.Net.Element.Scroll ( Direction  direction,
int  distance,
bool  animate 
)
inlinevirtual

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

Parameters
directionScroll direction
distanceHow far to scroll the element in pixels
animatetrue for the default animation
Returns
This element

◆ Scroll() [3/3]

virtual Element Ext.Net.Element.Scroll ( Direction  direction,
int  distance,
ElementFxConfig  animate 
)
inlinevirtual

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

Parameters
directionScroll direction
distanceHow far to scroll the element in pixels
animatestandard Element animation config object
Returns
This element

◆ ScrollIntoView() [1/3]

virtual Element Ext.Net.Element.ScrollIntoView ( )
inlinevirtual

Scrolls this element into view within the passed container.

Returns
This element

◆ ScrollIntoView() [2/3]

virtual Element Ext.Net.Element.ScrollIntoView ( Element  container)
inlinevirtual

Scrolls this element into view within the passed container.

Parameters
containerThe container element to scroll (defaults to document.body).
Returns
This element

◆ ScrollIntoView() [3/3]

virtual Element Ext.Net.Element.ScrollIntoView ( Element  container,
bool  hscroll 
)
inlinevirtual

Scrolls this element into view within the passed container.

Parameters
containerThe container element to scroll (defaults to document.body).
hscrollFalse to disable horizontal scroll (defaults to true)
Returns
This element

◆ ScrollTo() [1/3]

virtual Element Ext.Net.Element.ScrollTo ( Direction  side,
int  value 
)
inlinevirtual

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
sideEither "Left" for scrollLeft values or "Top" for scrollTop values.
valueThe new scroll value
Returns
This element

◆ ScrollTo() [2/3]

virtual Element Ext.Net.Element.ScrollTo ( Direction  side,
int  value,
bool  animate 
)
inlinevirtual

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
sideEither "Left" for scrollLeft values or "Top" for scrollTop values.
valueThe new scroll value
animatetrue for the default animation
Returns
This element

◆ ScrollTo() [3/3]

virtual Element Ext.Net.Element.ScrollTo ( Direction  side,
int  value,
ElementFxConfig  animate 
)
inlinevirtual

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
sideEither "Left" for scrollLeft values or "Top" for scrollTop values.
valueThe new scroll value
animatestandard Element animation config object
Returns
This element

◆ Select() [1/3]

virtual Element Ext.Net.Element.Select ( string  selector)
inlinevirtual

Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in one statement

Parameters
selectorThe CSS selector or an array of elements
Returns
Elements

◆ Select() [2/3]

virtual Element Ext.Net.Element.Select ( string  selector,
bool  unique 
)
inlinevirtual

Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in one statement

Parameters
selectorThe CSS selector or an array of elements
uniquetrue to create a unique Ext.Element for each element (defaults to a shared flyweight object)
Returns
Elements

◆ Select() [3/3]

virtual Element Ext.Net.Element.Select ( string  selector,
bool  unique,
string  root 
)
inlinevirtual

Selects elements based on the passed CSS selector to enable Element methods to be applied to many related elements in one statement

Parameters
selectorThe CSS selector or an array of elements
uniquetrue to create a unique Ext.Element for each element (defaults to a shared flyweight object)
rootid of the root
Returns
Elements

◆ SequenceFx()

virtual Element Ext.Net.Element.SequenceFx ( )
inlinevirtual

Ensures that all effects queued after sequenceFx is called on the element are run in sequence. This is the opposite of syncFx.

Returns
The Element

◆ Set() [1/2]

virtual Element Ext.Net.Element.Set ( JsonObject  o)
inlinevirtual

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

Parameters
oThe object with the attributes
Returns
This element

◆ Set() [2/2]

virtual Element Ext.Net.Element.Set ( JsonObject  o,
bool  useSet 
)
inlinevirtual

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

Parameters
oThe object with the attributes
useSetfalse to override the default setAttribute to use expandos.
Returns
This element

◆ SetBottom()

virtual Element Ext.Net.Element.SetBottom ( string  bottom)
inlinevirtual

Sets the element's CSS bottom style.

Parameters
bottomThe bottom CSS property value
Returns
This element

◆ SetBounds() [1/5]

virtual Element Ext.Net.Element.SetBounds ( int  x,
int  y,
int  width,
int  height,
bool  animate 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
widthThe new width
heightThe new height
animatetrue for the default animation
Returns
This element

◆ SetBounds() [2/5]

virtual Element Ext.Net.Element.SetBounds ( int  x,
int  y,
int  width,
int  height,
ElementFxConfig  animate 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
widthThe new width
heightThe new height
animatetrue for the default animation
Returns
This element

◆ SetBounds() [3/5]

virtual Element Ext.Net.Element.SetBounds ( int  x,
int  y,
int  width,
string  height 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
widthThe new width
heightThe new height
Returns
This element

◆ SetBounds() [4/5]

virtual Element Ext.Net.Element.SetBounds ( int  x,
int  y,
string  width,
int  height 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
widthThe new width
heightThe new height
Returns
This element

◆ SetBounds() [5/5]

virtual Element Ext.Net.Element.SetBounds ( int  x,
int  y,
string  width,
string  height 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
widthThe new width
heightThe new height
Returns
This element

◆ SetBox() [1/4]

virtual Element Ext.Net.Element.SetBox ( Box  box)
inlinevirtual

Sets the element's box.

Parameters
boxThe box to fill {x, y, width, height}
Returns
This element

◆ SetBox() [2/4]

virtual Element Ext.Net.Element.SetBox ( Box  box,
bool  adjust 
)
inlinevirtual

Sets the element's box.

Parameters
boxThe box to fill {x, y, width, height}
adjustWhether to adjust for box-model issues automatically
Returns
This element

◆ SetBox() [3/4]

virtual Element Ext.Net.Element.SetBox ( Box  box,
bool  adjust,
bool  animate 
)
inlinevirtual

Sets the element's box.

Parameters
boxThe box to fill {x, y, width, height}
adjustWhether to adjust for box-model issues automatically
animatetrue for the default animation
Returns
This element

◆ SetBox() [4/4]

virtual Element Ext.Net.Element.SetBox ( Box  box,
bool  adjust,
ElementFxConfig  animate 
)
inlinevirtual

Sets the element's box.

Parameters
boxThe box to fill {x, y, width, height}
adjustWhether to adjust for box-model issues automatically
animatetrue for the default animation
Returns
This element

◆ SetCls() [1/2]

virtual void Ext.Net.Element.SetCls ( string  className)
inlinevirtual

Sets the specified CSS class on this element's DOM node.

Parameters
classNameThe CSS class to set on this element.

◆ SetCls() [2/2]

virtual void Ext.Net.Element.SetCls ( string[]  className)
inlinevirtual

Sets the specified CSS class on this element's DOM node.

Parameters
classNameThe CSS classes to set on this element.

◆ SetDisplayed() [1/2]

virtual Element Ext.Net.Element.SetDisplayed ( bool  value)
inlinevirtual

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

Parameters
valueBoolean value to display the element using its default display
Returns
This element

◆ SetDisplayed() [2/2]

virtual Element Ext.Net.Element.SetDisplayed ( string  value)
inlinevirtual

Sets the CSS display property.

Parameters
valueString to set the display directly.
Returns
This element

◆ SetHeight() [1/3]

virtual Element Ext.Net.Element.SetHeight ( int  value,
bool  animate 
)
inlinevirtual

Set the height of this Element.

Parameters
valueThe new height
animatetrue for the default animation
Returns
This element

◆ SetHeight() [2/3]

virtual Element Ext.Net.Element.SetHeight ( int  value,
ElementFxConfig  animate 
)
inlinevirtual

Set the height of this Element.

Parameters
valueThe new height
animatestandard Element animation config object
Returns
This element

◆ SetHeight() [3/3]

virtual Element Ext.Net.Element.SetHeight ( string  value)
inlinevirtual

Set the height of this Element.

Parameters
valueThe new height
Returns
This element

◆ SetHtml()

virtual void Ext.Net.Element.SetHtml ( string  html)
inlinevirtual

Sets the innerHTML of this element.

Parameters
htmlThe new HTML

◆ SetLeft()

virtual Element Ext.Net.Element.SetLeft ( string  left)
inlinevirtual

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

Parameters
leftThe left CSS property value
Returns
This element

◆ SetLeftTop()

virtual Element Ext.Net.Element.SetLeftTop ( string  left,
string  top 
)
inlinevirtual

Quick set left and top adding default units

Parameters
leftThe left CSS property value
topThe top CSS property value
Returns
This element

◆ SetLocation() [1/3]

virtual Element Ext.Net.Element.SetLocation ( int  x,
int  y 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
Returns
This element

◆ SetLocation() [2/3]

virtual Element Ext.Net.Element.SetLocation ( int  x,
int  y,
bool  animate 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
animateTrue for the default animation
Returns
This element

◆ SetLocation() [3/3]

virtual Element Ext.Net.Element.SetLocation ( int  x,
int  y,
ElementFxConfig  animate 
)
inlinevirtual

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
xX value for new position (coordinates are page-based)
yY value for new position (coordinates are page-based)
animateStandard Element animation config object
Returns
This element

◆ SetMaxHeight() [1/2]

virtual Element Ext.Net.Element.SetMaxHeight ( int  height)
inlinevirtual

Set the maximum height of this Element.

Parameters
heightThe new maximum height
Returns
Elements

◆ SetMaxHeight() [2/2]

virtual Element Ext.Net.Element.SetMaxHeight ( string  height)
inlinevirtual

Set the maximum height of this Element.

Parameters
heightThe new maximum height
Returns
Elements

◆ SetMaxWidth() [1/2]

virtual Element Ext.Net.Element.SetMaxWidth ( int  width)
inlinevirtual

Set the maximum width of this Element.

Parameters
widthThe new maximum width
Returns
Elements

◆ SetMaxWidth() [2/2]

virtual Element Ext.Net.Element.SetMaxWidth ( string  width)
inlinevirtual

Set the maximum width of this Element.

Parameters
widthThe new maximum width
Returns
Elements

◆ SetMinHeight() [1/2]

virtual Element Ext.Net.Element.SetMinHeight ( int  height)
inlinevirtual

Set the minimum height of this Element.

Parameters
heightThe new minimum height
Returns
Elements

◆ SetMinHeight() [2/2]

virtual Element Ext.Net.Element.SetMinHeight ( string  height)
inlinevirtual

Set the minimum height of this Element.

Parameters
heightThe new minimum height
Returns
Elements

◆ SetMinWidth() [1/2]

virtual Element Ext.Net.Element.SetMinWidth ( int  width)
inlinevirtual

Set the minimum width of this Element.

Parameters
widthThe new minimum width
Returns
Elements

◆ SetMinWidth() [2/2]

virtual Element Ext.Net.Element.SetMinWidth ( string  width)
inlinevirtual

Set the minimum width of this Element.

Parameters
widthThe new minimum width
Returns
Elements

◆ SetOpacity() [1/3]

virtual Element Ext.Net.Element.SetOpacity ( double  opacity)
inlinevirtual

Set the opacity of the element

Parameters
opacityThe new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
Returns
This element

◆ SetOpacity() [2/3]

virtual Element Ext.Net.Element.SetOpacity ( double  opacity,
bool  animate 
)
inlinevirtual

Set the opacity of the element

Parameters
opacityThe new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
animatetrue for the default animation
Returns
This element

◆ SetOpacity() [3/3]

virtual Element Ext.Net.Element.SetOpacity ( double  opacity,
ElementFxConfig  animate 
)
inlinevirtual

Set the opacity of the element

Parameters
opacityThe new opacity. 0 = transparent, .5 = 50% visibile, 1 = fully visible, etc
animatestandard Element animation config object
Returns
This element

◆ SetRight()

virtual Element Ext.Net.Element.SetRight ( string  right)
inlinevirtual

Sets the element's CSS right style.

Parameters
rightThe right CSS property value
Returns
This element

◆ SetSize() [1/6]

virtual Element Ext.Net.Element.SetSize ( int  width,
int  height 
)
inlinevirtual

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

Parameters
widthA Number specifying the new width
heightA Number specifying the new height
Returns
This element

◆ SetSize() [2/6]

virtual Element Ext.Net.Element.SetSize ( int  width,
int  height,
bool  animate 
)
inlinevirtual

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

Parameters
widthA Number specifying the new width
heightA Number specifying the new height
animatetrue for the default animation
Returns
This element

◆ SetSize() [3/6]

virtual Element Ext.Net.Element.SetSize ( int  width,
int  height,
ElementFxConfig  animate 
)
inlinevirtual

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

Parameters
widthA Number specifying the new width
heightA Number specifying the new height
animateStandard Element animation config object
Returns
This element

◆ SetSize() [4/6]

virtual Element Ext.Net.Element.SetSize ( int  width,
string  height 
)
inlinevirtual

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

Parameters
widthA Number specifying the new width
heightA String used to set the CSS height style.
Returns
This element

◆ SetSize() [5/6]

virtual Element Ext.Net.Element.SetSize ( string  width,
int  height 
)
inlinevirtual

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

Parameters
widthA String used to set the CSS width style
heightA Number specifying the new height
Returns
This element

◆ SetSize() [6/6]

virtual Element Ext.Net.Element.SetSize ( string  width,
string  height 
)
inlinevirtual

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

Parameters
widthA String used to set the CSS width style
heightA String used to set the CSS height style.
Returns
This element

◆ SetStyle() [1/2]

virtual Element Ext.Net.Element.SetStyle ( JsonObject  properties)
inlinevirtual

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

Parameters
propertiesObject of multiple styles
Returns
This element

◆ SetStyle() [2/2]

virtual Element Ext.Net.Element.SetStyle ( string  property,
string  value 
)
inlinevirtual

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

Parameters
propertyThe style property to be set
valueThe value to apply to the given property
Returns
This element

◆ SetTop()

virtual Element Ext.Net.Element.SetTop ( string  top)
inlinevirtual

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

Parameters
topThe top CSS property value
Returns
This element

◆ SetValue()

virtual Element Ext.Net.Element.SetValue ( object  value)
inlinevirtual

Sets the .value property of the Elements dom object if it exists.

Parameters
valueThe value to set the Elements dom object with.
Returns
This element

◆ SetVisibilityMode()

virtual Element Ext.Net.Element.SetVisibilityMode ( VisibilityMode  mode)
inlinevirtual

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
modeVisibility mode
Returns
This element

◆ SetVisible() [1/2]

virtual Element Ext.Net.Element.SetVisible ( bool  visible,
bool  animate 
)
inlinevirtual

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
visibleWhether the element is visible
animateTrue for the default animation
Returns
This element

◆ SetVisible() [2/2]

virtual Element Ext.Net.Element.SetVisible ( bool  visible,
ElementFxConfig  animate 
)
inlinevirtual

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
visibleWhether the element is visible
animatestandard Element animation config object
Returns
This element

◆ SetWidth() [1/3]

virtual Element Ext.Net.Element.SetWidth ( int  width,
bool  animate 
)
inlinevirtual

Set the width of this Element.

Parameters
widthThe new width
animatetrue for the default animation
Returns
This element

◆ SetWidth() [2/3]

virtual Element Ext.Net.Element.SetWidth ( int  width,
ElementFxConfig  animate 
)
inlinevirtual

Set the width of this Element.

Parameters
widthThe new width
animatestandard Element animation config object
Returns
This element

◆ SetWidth() [3/3]

virtual Element Ext.Net.Element.SetWidth ( string  width)
inlinevirtual

Set the width of this Element.

Parameters
widthThe new width
Returns
This element

◆ SetX() [1/3]

virtual Element Ext.Net.Element.SetX ( int  x)
inlinevirtual

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
xX position of the element
Returns
This element

◆ SetX() [2/3]

virtual Element Ext.Net.Element.SetX ( int  x,
bool  animate 
)
inlinevirtual

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
xX position of the element
animateTrue for the default animation
Returns
This element

◆ SetX() [3/3]

virtual Element Ext.Net.Element.SetX ( int  x,
ElementFxConfig  animate 
)
inlinevirtual

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
xX position of the element
animateStandard Element animation config object
Returns
This element

◆ SetXY() [1/3]

virtual Element Ext.Net.Element.SetXY ( int  x,
int  y 
)
inlinevirtual

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
xX position of the element
yY position of the element
Returns
This element

◆ SetXY() [2/3]

virtual Element Ext.Net.Element.SetXY ( int  x,
int  y,
bool  animate 
)
inlinevirtual

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
xX position of the element
yY position of the element
animateTrue for the default animation
Returns
This element

◆ SetXY() [3/3]

virtual Element Ext.Net.Element.SetXY ( int  x,
int  y,
ElementFxConfig  animate 
)
inlinevirtual

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
xX position of the element
yY position of the element
animateStandard Element animation config object
Returns
This element

◆ SetY() [1/3]

virtual Element Ext.Net.Element.SetY ( int  y)
inlinevirtual

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
yY position of the element
Returns
This element

◆ SetY() [2/3]

virtual Element Ext.Net.Element.SetY ( int  y,
bool  animate 
)
inlinevirtual

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
yY position of the element
animateTrue for the default animation
Returns
This element

◆ SetY() [3/3]

virtual Element Ext.Net.Element.SetY ( int  y,
ElementFxConfig  animate 
)
inlinevirtual

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
yY position of the element
animateStandard Element animation config object
Returns
This element

◆ Shift()

virtual Element Ext.Net.Element.Shift ( ShiftConfig  config)
inlinevirtual

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

Parameters
configObject literal with any of the Fx config options
Returns
The Element

◆ Show() [1/3]

virtual Element Ext.Net.Element.Show ( )
inlinevirtual

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

Returns
This element

◆ Show() [2/3]

virtual Element Ext.Net.Element.Show ( bool  animate)
inlinevirtual

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

Parameters
animatetrue for the default animation
Returns
This element

◆ Show() [3/3]

virtual Element Ext.Net.Element.Show ( ElementFxConfig  animate)
inlinevirtual

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

Parameters
animateStandard Element animation config object
Returns
This element

◆ SingleSelect() [1/2]

virtual Element Ext.Net.Element.SingleSelect ( string  selector)
inlinevirtual

Selects first element based on the passed CSS selector

Parameters
selectorThe CSS selector
Returns
Elements

◆ SingleSelect() [2/2]

virtual Element Ext.Net.Element.SingleSelect ( string  selector,
bool  unique 
)
inlinevirtual

Selects first element based on the passed CSS selector

Parameters
selectorThe CSS selector
uniquetrue to create a unique Ext.Element for each element
Returns
Elements

◆ SlideIn() [1/3]

virtual Element Ext.Net.Element.SlideIn ( )
inlinevirtual

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

Returns
The Element

◆ SlideIn() [2/3]

virtual Element Ext.Net.Element.SlideIn ( string  anchor)
inlinevirtual

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

Parameters
anchorOne of the valid Fx anchor positions (defaults to top: 't')
Returns
The Element

◆ SlideIn() [3/3]

virtual Element Ext.Net.Element.SlideIn ( string  anchor,
FxConfig  config 
)
inlinevirtual

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

Parameters
anchorOne of the valid Fx anchor positions (defaults to top: 't')
configObject literal with any of the Fx config options
Returns
The Element

◆ SlideOut() [1/3]

virtual Element Ext.Net.Element.SlideOut ( )
inlinevirtual

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

Returns
The Element

◆ SlideOut() [2/3]

virtual Element Ext.Net.Element.SlideOut ( string  anchor)
inlinevirtual

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

Parameters
anchorOne of the valid Fx anchor positions (defaults to top: 't')
Returns
The Element

◆ SlideOut() [3/3]

virtual Element Ext.Net.Element.SlideOut ( string  anchor,
FxConfig  config 
)
inlinevirtual

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

Parameters
anchorOne of the valid Fx anchor positions (defaults to top: 't')
configObject literal with any of the Fx config options
Returns
The Element

◆ StopFx()

virtual Element Ext.Net.Element.StopFx ( )
inlinevirtual

Stops any running effects and clears the element's internal effects queue if it contains any additional effects that haven't started yet.

Returns
The Element

◆ SwallowEvent() [1/4]

virtual Element Ext.Net.Element.SwallowEvent ( string  eventName)
inlinevirtual

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

Parameters
eventNamean event / array of events to stop from bubbling
Returns
This element

◆ SwallowEvent() [2/4]

virtual Element Ext.Net.Element.SwallowEvent ( string  eventName,
bool  preventDefault 
)
inlinevirtual

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

Parameters
eventNamean event / array of events to stop from bubbling
preventDefaulttrue to prevent the default action too
Returns
This element

◆ SwallowEvent() [3/4]

virtual Element Ext.Net.Element.SwallowEvent ( string[]  eventNames)
inlinevirtual

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

Parameters
eventNamesan event / array of events to stop from bubbling
Returns
This element

◆ SwallowEvent() [4/4]

virtual Element Ext.Net.Element.SwallowEvent ( string[]  eventNames,
bool  preventDefault 
)
inlinevirtual

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

Parameters
eventNamesan event / array of events to stop from bubbling
preventDefaulttrue to prevent the default action too
Returns
This element

◆ SwitchOff() [1/2]

virtual Element Ext.Net.Element.SwitchOff ( )
inlinevirtual

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

Returns
The Element

◆ SwitchOff() [2/2]

virtual Element Ext.Net.Element.SwitchOff ( FxConfig  config)
inlinevirtual

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

Parameters
configObject literal with any of the Fx config options
Returns
The Element

◆ SyncFx()

virtual Element Ext.Net.Element.SyncFx ( )
inlinevirtual

Ensures that all effects queued after syncFx is called on the element are run concurrently. This is the opposite of sequenceFx.

Returns
The Element

◆ Toggle() [1/3]

virtual Element Ext.Net.Element.Toggle ( )
inlinevirtual

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

Returns
This element

◆ Toggle() [2/3]

virtual Element Ext.Net.Element.Toggle ( bool  animate)
inlinevirtual

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

Parameters
animatetrue for the default animation
Returns
This element

◆ Toggle() [3/3]

virtual Element Ext.Net.Element.Toggle ( ElementFxConfig  animate)
inlinevirtual

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

Parameters
animateStandard Element animation config object
Returns
This element

◆ ToggleCls()

virtual Element Ext.Net.Element.ToggleCls ( string  className)
inlinevirtual

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

Parameters
classNameThe CSS class to toggle
Returns
This element

◆ ToScript()

override string Ext.Net.Element.ToScript ( )
inlinevirtual

Implements Ext.Net.ScriptClass.

◆ Unclip()

virtual Element Ext.Net.Element.Unclip ( )
inlinevirtual

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

Returns
This element

◆ Unmask()

virtual Element Ext.Net.Element.Unmask ( )
inlinevirtual

Removes a previously applied mask.

Returns
This element

◆ Unselectable()

virtual Element Ext.Net.Element.Unselectable ( )
inlinevirtual

Disables text selection for this element (normalized across browsers)

Returns
This element

◆ Up() [1/4]

virtual Element Ext.Net.Element.Up ( )
inlinevirtual

Return original element, uses with Chaining only

Returns
This element

◆ Up() [2/4]

virtual Element Ext.Net.Element.Up ( string  selector)
inlinevirtual

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
selectorThe simple selector to test
Returns
The matching DOM node

◆ Up() [3/4]

virtual Element Ext.Net.Element.Up ( string  selector,
Element  maxDepth 
)
inlinevirtual

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
selectorThe simple selector to test
maxDepthThe max depth to search as a element
Returns
The matching DOM node

◆ Up() [4/4]

virtual Element Ext.Net.Element.Up ( string  selector,
int  maxDepth 
)
inlinevirtual

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
selectorThe simple selector to test
maxDepthThe max depth to search as a number
Returns
The matching DOM node

◆ Update() [1/3]

virtual void Ext.Net.Element.Update ( string  html)
inlinevirtual

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

Parameters
htmlThe new HTML

◆ Update() [2/3]

virtual Element Ext.Net.Element.Update ( string  html,
bool  loadScripts 
)
inlinevirtual

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

Parameters
htmlThe new HTML
loadScriptsTrue to look for and process scripts (defaults to false)
Returns
This element

◆ Update() [3/3]

virtual Element Ext.Net.Element.Update ( string  html,
bool  loadScripts,
JFunction  callback 
)
inlinevirtual

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

Parameters
htmlThe new HTML
loadScriptsTrue to look for and process scripts (defaults to false)
callbackFor async script loading you can be notified when the update completes
Returns
This element

◆ UpdateText()

virtual void Ext.Net.Element.UpdateText ( string  text)
inlinevirtual

Updates the text value of this element. Replaces the content of this element with a single text node containing the passed text.

Parameters
textThe text to display in this Element.

◆ Window()

static Element Ext.Net.Element.Window ( )
inlinestatic

Returns the current window object as an Ext.dom.Element. Typically used for attaching event listeners to the window. Note: since the window object is not an HTMLElement many of the Ext.dom.Element methods are not applicable and may throw errors if called on the returned Element instance.

Returns
The current window object as an Ext.dom.Element

◆ Wrap() [1/2]

virtual Element Ext.Net.Element.Wrap ( )
inlinevirtual

Creates and wraps this element with another element

Returns
The newly created wrapper element

◆ Wrap() [2/2]

virtual Element Ext.Net.Element.Wrap ( DomObject  config)
inlinevirtual

Creates and wraps this element with another element

Parameters
configDomHelper element config object for the wrapper element
Returns
The newly created wrapper element

Property Documentation

◆ Buffer

virtual StringBuilder Ext.Net.Element.Buffer
getprotected

◆ Chaining

virtual bool Ext.Net.Element.Chaining
getset

◆ Delay

virtual int Ext.Net.Element.Delay
getset

◆ Descriptor

virtual string? Ext.Net.Element.Descriptor
get

◆ Dom

virtual Dom Ext.Net.Element.Dom
get

◆ ID

virtual string Ext.Net.Element.ID
get

◆ InstanceOf

override string Ext.Net.Element.InstanceOf
get

◆ RealDescriptor

virtual string Ext.Net.Element.RealDescriptor
get


The documentation for this class was generated from the following file: