class type t =Inheritsobject
..end
method defaultUnit : Js.js_string Js.t Js.prop
The default unit to append to CSS values where a unit isn't provided.
Overridden in Ext.dom.AbstractElement_static.
Defaults to: "px"
method dom : Dom_html.element Js.t Js.prop
The DOM element
method id : Js.js_string Js.t Js.prop
The DOM element ID
method addCls : 'a.
'a Js.t ->
(< addCls : 'a. 'b;
appendChild : 'd. 'd Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
appendTo : 'e. 'e Js.t -> 'c Js.t Js.meth;
applyStyles : 'f. 'f Js.t -> 'c Js.t Js.meth;
callParent : 'g 'h. 'g Js.t -> 'h Js.t Js.meth;
callSuper : 'i 'j. 'i Js.t -> 'j Js.t Js.meth;
child : 'k. Js.js_string Js.t -> bool Js.t Js.optdef -> 'k Js.t Js.meth;
contains : 'l. 'l Js.t -> bool Js.t Js.meth;
createChild : 'm.
'm Js.t ->
Dom_html.element Js.t Js.optdef ->
bool Js.t Js.optdef -> 'c Js.t Js.meth;
defaultUnit : Js.js_string Js.t Js.prop; destroy : unit Js.meth;
dom : Dom_html.element Js.t Js.prop;
down : 'n. Js.js_string Js.t -> bool Js.t Js.optdef -> 'n Js.t Js.meth;
findParent : 'o.
Js.js_string Js.t ->
'o Js.t Js.optdef ->
bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth;
findParentNode : 'p.
Js.js_string Js.t ->
'p Js.t Js.optdef ->
bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth;
first : 'q.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'q Js.t Js.meth;
getActiveElement : Dom_html.element Js.t Js.meth;
getAttribute : Js.js_string Js.t ->
Js.js_string Js.t Js.optdef -> Js.js_string Js.t Js.meth;
getBorderWidth : Js.js_string Js.t -> Js.number Js.t Js.meth;
getById : Js.js_string Js.t -> bool Js.t Js.optdef -> unit Js.meth;
getHTML : unit Js.meth;
getHeight : bool Js.t Js.optdef -> Js.number Js.t Js.meth;
getInitialConfig : 'r. Js.js_string Js.t Js.optdef -> 'r Js.t Js.meth;
getMargin : 's. Js.js_string Js.t Js.optdef -> 's Js.t Js.meth;
getPadding : Js.js_string Js.t -> Js.number Js.t Js.meth;
getSize : 't. bool Js.t Js.optdef -> 't Js.t Js.meth;
getStyle : 'u 'v. 'u Js.t -> bool Js.t Js.optdef -> 'v Js.t Js.meth;
getValue : 'w. bool Js.t -> 'w Js.t Js.meth;
getViewSize : 'x. 'x Js.t Js.meth;
getWidth : bool Js.t Js.optdef -> Js.number Js.t Js.meth;
hasCls : Js.js_string Js.t -> bool Js.t Js.meth;
hide : 'y. 'y Js.t Js.optdef -> 'c Js.t Js.meth;
id : Js.js_string Js.t Js.prop;
initConfig : 'z. 'z Js.t -> 'c Js.t Js.meth;
insertAfter : 'a1. 'a1 Js.t -> 'c Js.t Js.meth;
insertBefore : 'b1. 'b1 Js.t -> 'c Js.t Js.meth;
insertFirst : 'c1. 'c1 Js.t -> 'c Js.t Js.meth;
insertHtml : 'd1.
Js.js_string Js.t ->
Js.js_string Js.t ->
bool Js.t Js.optdef -> 'd1 Js.t Js.meth;
insertSibling : 'e1.
'e1 Js.t ->
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'c Js.t Js.meth;
is : Js.js_string Js.t -> bool Js.t Js.meth;
isStyle : Js.js_string Js.t -> Js.js_string Js.t -> bool Js.t Js.meth;
isTransparent : Js.js_string Js.t -> bool Js.t Js.meth;
last : 'f1.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'f1 Js.t Js.meth;
mask : Js.js_string Js.t Js.optdef ->
Js.js_string Js.t Js.optdef -> unit Js.meth;
next : 'g1.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'g1 Js.t Js.meth;
parent : 'h1.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'h1 Js.t Js.meth;
prev : 'i1.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'i1 Js.t Js.meth;
query : Js.js_string Js.t ->
Dom_html.element Js.t Js.js_array Js.t Js.meth;
radioCls : 'j1. 'j1 Js.t -> 'c Js.t Js.meth; remove : unit Js.meth;
removeCls : 'k1. 'k1 Js.t -> 'c Js.t Js.meth; repaint : 'c Js.t Js.meth;
replace : 'l1. 'l1 Js.t -> 'c Js.t Js.meth;
replaceCls : Js.js_string Js.t -> Js.js_string Js.t -> 'c Js.t Js.meth;
replaceWith : 'm1. 'm1 Js.t -> 'c Js.t Js.meth;
select : 'n1.
Js.js_string Js.t -> bool Js.t Js.optdef -> 'n1 Js.t Js.meth;
self : Ext_Class.t Js.t Js.prop;
serializeForm : 'o1. 'o1 Js.t -> Js.js_string Js.t Js.meth;
set : 'p1. 'p1 Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
setHTML : Js.js_string Js.t -> 'c Js.t Js.meth;
setHeight : 'q1. 'q1 Js.t -> 'c Js.t Js.meth;
setSize : 'r1 's1. 'r1 Js.t -> 's1 Js.t -> 'c Js.t Js.meth;
setStyle : 't1.
't1 Js.t -> Js.js_string Js.t Js.optdef -> 'c Js.t Js.meth;
setVisibilityMode : 'u1. 'u1 Js.t -> 'c Js.t Js.meth;
setVisible : 'v1. bool Js.t -> 'v1 Js.t Js.optdef -> 'c Js.t Js.meth;
setWidth : 'w1. 'w1 Js.t -> 'c Js.t Js.meth;
show : 'x1. 'x1 Js.t Js.optdef -> 'c Js.t Js.meth;
statics : Ext_Class.t Js.t Js.meth;
toggleCls : Js.js_string Js.t -> 'c Js.t Js.meth; unmask : unit Js.meth;
up : 'y1.
Js.js_string Js.t ->
'y1 Js.t Js.optdef -> bool Js.t Js.optdef -> 'c Js.t Js.meth;
update : Js.js_string Js.t -> 'c Js.t Js.meth;
wrap : 'z1 'a2.
'z1 Js.t Js.optdef ->
bool Js.t Js.optdef ->
Js.js_string Js.t Js.optdef -> 'a2 Js.t Js.meth;
.. >
as 'c)
Js.t Js.meth as 'b
Adds one or more CSS classes to the element. Duplicate classes are automatically filtered out.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The CSS classes to add separated by space, or an array of classes
Returns:
Ext_dom_Element.t Js.t
this
method appendChild : 'd. 'd Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth
Appends the passed element(s) to this element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The id or element to insert or a DomHelper config The id of the node, a DOM Node or an existing Element.
bool Js.t
(optional)
True to return the raw DOM element instead of Ext.dom.AbstractElement
Defaults to: falseReturns:
#Ext_dom_AbstractElement.t Js.t
The inserted Element.
method appendTo : 'e. 'e Js.t -> 'c Js.t Js.meth
Appends this element to the passed element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The new parent element. The id of the node, a DOM Node or an existing Element.
Returns:
#Ext_dom_AbstractElement.t Js.t
This element
method applyStyles : 'f. 'f Js.t -> 'c Js.t Js.meth
More flexible version of setStyle for setting style properties.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
A style specification string, e.g. "width:100px", or object in the form {width:"100px"}, or a function which returns such a specification.
Returns:
Ext_dom_Element.t Js.t
this
method child : 'k. Js.js_string Js.t -> bool Js.t Js.optdef -> 'k Js.t Js.meth
Selects a single direct child based on the passed CSS selector (the selector should not contain an id).
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
The CSS selector
bool Js.t
(optional)
True to return the DOM node instead of Ext.dom.Element.
Defaults to: falseReturns:
_ Js.t
The child Ext.dom.Element (or DOM node if returnDom = true)
method contains : 'l. 'l Js.t -> bool Js.t Js.meth
Returns true if this element is an ancestor of the passed element
Parameters:
_ Js.t
The element to check
Returns:
bool Js.t
True if this element is an ancestor of el, else false
method createChild : 'm.
'm Js.t ->
Dom_html.element Js.t Js.optdef -> bool Js.t Js.optdef -> 'c Js.t Js.meth
Creates the passed DomHelper config and appends it to this element or optionally inserts it before the passed child element.
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
DomHelper element config object. If no tag is specified (e.g., {tag:'input'}) then a div will be automatically generated with the specified attributes.
Dom_html.element Js.t
(optional)
a child element of this element
bool Js.t
(optional)
true to return the dom node instead of creating an Element
Defaults to: falseReturns:
#Ext_dom_AbstractElement.t Js.t
The new child element
method destroy : unit Js.meth
Alias to remove.
Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode
method down : 'n. Js.js_string Js.t -> bool Js.t Js.optdef -> 'n Js.t Js.meth
Selects a single child at any depth below this element based on the passed CSS selector (the selector should not contain an id).
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
The CSS selector
bool Js.t
(optional)
True to return the DOM node instead of Ext.dom.Element
Defaults to: falseReturns:
_ Js.t
The child Ext.dom.Element (or DOM node if returnDom = true)
method findParent : 'o.
Js.js_string Js.t ->
'o Js.t Js.optdef -> bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth
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)
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
The simple selector to test
_ Js.t
(optional)
The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement)
bool Js.t
(optional)
True to return a Ext.Element object instead of DOM node
Defaults to: falseReturns:
Dom_html.element Js.t
The matching DOM node (or null if no match was found)
method findParentNode : 'p.
Js.js_string Js.t ->
'p Js.t Js.optdef -> bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth
Looks at parent nodes for a match of the passed simple selector (e.g. div.some-class or span:first-child)
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
The simple selector to test
_ Js.t
(optional)
The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement)
bool Js.t
(optional)
True to return a Ext.Element object instead of DOM node
Defaults to: falseReturns:
Dom_html.element Js.t
The matching DOM node (or null if no match was found)
method first : 'q. Js.js_string Js.t Js.optdef -> bool Js.t Js.optdef -> 'q Js.t Js.meth
Gets the first child, skipping text nodes
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
(optional)
Find the next sibling that matches the passed simple selector
bool Js.t
(optional)
True to return a raw dom node instead of an Ext.dom.Element
Defaults to: falseReturns:
_ Js.t
The first child or null
method getActiveElement : Dom_html.element Js.t Js.meth
Returns the active element in the DOM. If the browser supports activeElement on the document, this is returned. If not, the focus is tracked and the active element is maintained internally.
Defined in override Ext.dom.AbstractElement_static.
Returns:
Dom_html.element Js.t
The active (focused) element in the document.
method getAttribute : Js.js_string Js.t -> Js.js_string Js.t Js.optdef -> Js.js_string Js.t Js.meth
Returns the value of an attribute from the element's underlying DOM node.
Parameters:
Js.js_string Js.t
The attribute name
Js.js_string Js.t
(optional)
The namespace in which to look for the attribute
Returns:
Js.js_string Js.t
The attribute value
method getBorderWidth : Js.js_string Js.t -> Js.number Js.t Js.meth
Gets the width of the border(s) for the specified side(s)
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
Can be t, l, r, b or any combination of those to add multiple values. For example,
passing 'lr'
would get the border left width + the border right width.
Returns:
Js.number Js.t
The width of the sides passed added together
method getById : Js.js_string Js.t -> bool Js.t Js.optdef -> unit Js.meth
Returns a child element of this element given its id
.
Parameters:
Js.js_string Js.t
The id of the desired child element.
bool Js.t
(optional)
True to return the DOM element, false to return a wrapped Element object.
Defaults to: falsemethod getHTML : unit Js.meth
Returns the innerHTML of an Element or an empty string if the element's dom no longer exists.
method getHeight : bool Js.t Js.optdef -> Js.number Js.t Js.meth
Returns the offset height of the element
Defined in override Ext.dom.AbstractElement_style.
Parameters:
bool Js.t
(optional)
true to get the height minus borders and padding
Returns:
Js.number Js.t
The element's height
method getMargin : 's. Js.js_string Js.t Js.optdef -> 's Js.t Js.meth
Returns an object with properties top, left, right and bottom representing the margins of this element unless sides is passed, then it returns the calculated width of the sides (see getPadding)
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
(optional)
Any combination of l, r, t, b to get the sum of those sides
method getPadding : Js.js_string Js.t -> Js.number Js.t Js.meth
Gets the width of the padding(s) for the specified side(s)
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
Can be t, l, r, b or any combination of those to add multiple values. For example,
passing 'lr'
would get the padding left + the padding right.
Returns:
Js.number Js.t
The padding of the sides passed added together
method getSize : 't. bool Js.t Js.optdef -> 't Js.t Js.meth
Returns the size of the element.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
bool Js.t
(optional)
true to get the width/size minus borders and padding
Returns:
_ Js.t
An object containing the element's size:
method getStyle : 'u 'v. 'u Js.t -> bool Js.t Js.optdef -> 'v Js.t Js.meth
Returns a named style property based on computed/currentStyle (primary) and inline-style if primary is not available.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The style property (or multiple property names in an array) whose value is returned.
bool Js.t
(optional)
if true
only inline styles will be returned.
Returns:
_ Js.t
The current value of the style property for this element (or a hash of named style values if multiple property arguments are requested).
method getValue : 'w. bool Js.t -> 'w Js.t Js.meth
Returns the value of the "value" attribute
Parameters:
bool Js.t
true to parse the value as a number
method getViewSize : 'x. 'x Js.t Js.meth
Returns the dimensions of the element available to lay content out in.
If the element (or any ancestor element) has CSS style display: none
, the dimensions will be zero.
Example:
var vpSize = Ext.getBody().getViewSize();
// all Windows created afterwards will have a default value of 90% height and 95% width
Ext.Window.override({
width: vpSize.width * 0.9,
height: vpSize.height * 0.95
});
// To handle window resizing you would have to hook onto onWindowResize.
getViewSize utilizes clientHeight/clientWidth which excludes sizing of scrollbars. To obtain the size including scrollbars, use getStyleSize
Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.
Defined in override Ext.dom.AbstractElement_style.
Returns:
_ Js.t
Object describing width and height.
method getWidth : bool Js.t Js.optdef -> Js.number Js.t Js.meth
Returns the offset width of the element
Defined in override Ext.dom.AbstractElement_style.
Parameters:
bool Js.t
(optional)
true to get the width minus borders and padding
Returns:
Js.number Js.t
The element's width
method hasCls : Js.js_string Js.t -> bool Js.t Js.meth
Checks if the specified CSS class exists on this element's DOM node.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
The CSS class to check for
Returns:
bool Js.t
True if the class exists, else false
method hide : 'y. 'y Js.t Js.optdef -> 'c Js.t Js.meth
Hide this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible.
Parameters:
_ Js.t
(optional)
true for the default animation or a standard Element animation config object
Returns:
Ext_dom_Element.t Js.t
this
method insertAfter : 'a1. 'a1 Js.t -> 'c Js.t Js.meth
Inserts this element after the passed element in the DOM
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The element to insert after. The id of the node, a DOM Node or an existing Element.
Returns:
#Ext_dom_AbstractElement.t Js.t
This element
method insertBefore : 'b1. 'b1 Js.t -> 'c Js.t Js.meth
Inserts this element before the passed element in the DOM
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The element before which this element will be inserted. The id of the node, a DOM Node or an existing Element.
Returns:
#Ext_dom_AbstractElement.t Js.t
This element
method insertFirst : 'c1. 'c1 Js.t -> 'c Js.t Js.meth
Inserts (or creates) an element (or DomHelper config) as the first child of this element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The id or element to insert or a DomHelper config to create and insert
Returns:
#Ext_dom_AbstractElement.t Js.t
The new child
method insertHtml : 'd1.
Js.js_string Js.t ->
Js.js_string Js.t -> bool Js.t Js.optdef -> 'd1 Js.t Js.meth
Inserts an html fragment into this element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
Js.js_string Js.t
Where to insert the html in relation to this element * beforeBegin, afterBegin, beforeEnd, afterEnd. See Ext.dom.Helper.insertHtml for details.
Js.js_string Js.t
The HTML fragment
bool Js.t
(optional)
True to return an Ext.dom.AbstractElement
Defaults to: falseReturns:
_ Js.t
The inserted node (or nearest related if more than 1 inserted)
method insertSibling : 'e1.
'e1 Js.t ->
Js.js_string Js.t Js.optdef -> bool Js.t Js.optdef -> 'c Js.t Js.meth
Inserts (or creates) the passed element (or DomHelper config) as a sibling of this element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The id, element to insert or a DomHelper config to create and insert or an array of any of those.
Js.js_string Js.t
(optional) 'before' or 'after'
Defaults to: 'before'bool Js.t
(optional)
True to return the raw DOM element instead of Ext.dom.AbstractElement
Defaults to: falseReturns:
#Ext_dom_AbstractElement.t Js.t
The inserted Element. If an array is passed, the last inserted element is returned.
method is : Js.js_string Js.t -> bool Js.t Js.meth
Returns true if this element matches the passed simple selector (e.g. div.some-class or span:first-child)
Parameters:
Js.js_string Js.t
The simple selector to test
Returns:
bool Js.t
True if this element matches the selector, else false
method isStyle : Js.js_string Js.t -> Js.js_string Js.t -> bool Js.t Js.meth
Checks if the current value of a style is equal to a given value.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
property whose value is returned.
Js.js_string Js.t
to check against.
Returns:
bool Js.t
true for when the current value equals the given value.
method isTransparent : Js.js_string Js.t -> bool Js.t Js.meth
Returns true if the value of the given property is visually transparent. This may be due to a 'transparent' style value or an rgba value with 0 in the alpha component.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
The style property whose value is to be tested.
Returns:
bool Js.t
True if the style property is visually transparent.
method last : 'f1. Js.js_string Js.t Js.optdef -> bool Js.t Js.optdef -> 'f1 Js.t Js.meth
Gets the last child, skipping text nodes
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
(optional)
Find the previous sibling that matches the passed simple selector
bool Js.t
(optional)
True to return a raw dom node instead of an Ext.dom.Element
Defaults to: falseReturns:
_ Js.t
The last child or null
method mask : Js.js_string Js.t Js.optdef -> Js.js_string Js.t Js.optdef -> unit Js.meth
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.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
(optional)
A message to display in the mask
Js.js_string Js.t
(optional)
A css class to apply to the msg element
method next : 'g1. Js.js_string Js.t Js.optdef -> bool Js.t Js.optdef -> 'g1 Js.t Js.meth
Gets the next sibling, skipping text nodes
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
(optional)
Find the next sibling that matches the passed simple selector
bool Js.t
(optional)
True to return a raw dom node instead of an Ext.dom.Element
Defaults to: falseReturns:
_ Js.t
The next sibling or null
method parent : 'h1. Js.js_string Js.t Js.optdef -> bool Js.t Js.optdef -> 'h1 Js.t Js.meth
Gets the parent node for this element, optionally chaining up trying to match a selector
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
(optional)
Find a parent node that matches the passed simple selector
bool Js.t
(optional)
True to return a raw dom node instead of an Ext.dom.Element
Defaults to: falseReturns:
_ Js.t
The parent node or null
method prev : 'i1. Js.js_string Js.t Js.optdef -> bool Js.t Js.optdef -> 'i1 Js.t Js.meth
Gets the previous sibling, skipping text nodes
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
(optional)
Find the previous sibling that matches the passed simple selector
bool Js.t
(optional)
True to return a raw dom node instead of an Ext.dom.Element
Defaults to: falseReturns:
_ Js.t
The previous sibling or null
method query : Js.js_string Js.t -> Dom_html.element Js.t Js.js_array Js.t Js.meth
Selects child nodes based on the passed CSS selector (the selector should not contain an id).
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
The CSS selector
Returns:
Dom_html.element Js.t Js.js_array Js.t
An array of the matched nodes
method radioCls : 'j1. 'j1 Js.t -> 'c Js.t Js.meth
Adds one or more CSS classes to this element and removes the same class(es) from all siblings.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The CSS class to add, or an array of classes
Returns:
Ext_dom_Element.t Js.t
this
method remove : unit Js.meth
Removes this element's dom reference. Note that event and cache removal is handled at Ext.removeNode
method removeCls : 'k1. 'k1 Js.t -> 'c Js.t Js.meth
Removes one or more CSS classes from the element.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The CSS classes to remove separated by space, or an array of classes
Returns:
Ext_dom_Element.t Js.t
this
method repaint : 'c Js.t Js.meth
Forces the browser to repaint this element
Defined in override Ext.dom.AbstractElement_style.
Returns:
Ext_dom_Element.t Js.t
this
method replace : 'l1. 'l1 Js.t -> 'c Js.t Js.meth
Replaces the passed element with this element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The element to replace. The id of the node, a DOM Node or an existing Element.
Returns:
#Ext_dom_AbstractElement.t Js.t
This element
method replaceCls : Js.js_string Js.t -> Js.js_string Js.t -> 'c Js.t Js.meth
Replaces a CSS class on the element with another. If the old name does not exist, the new name will simply be added.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
The CSS class to replace
Js.js_string Js.t
The replacement CSS class
Returns:
Ext_dom_Element.t Js.t
this
method replaceWith : 'm1. 'm1 Js.t -> 'c Js.t Js.meth
Replaces this element with the passed element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
The new element (id of the node, a DOM Node or an existing Element) or a DomHelper config of an element to create
Returns:
#Ext_dom_AbstractElement.t Js.t
This element
method select : 'n1. Js.js_string Js.t -> bool Js.t Js.optdef -> 'n1 Js.t Js.meth
Creates a Ext.CompositeElement for child nodes based on the passed CSS selector (the selector should not contain an id).
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
The CSS selector
bool Js.t
(optional)
True to create a unique Ext.Element for each element. Defaults to a shared flyweight object.
Returns:
Ext_dom_CompositeElement.t Js.t
The composite element
method serializeForm : 'o1. 'o1 Js.t -> Js.js_string Js.t Js.meth
Serializes a DOM form into a url encoded string
Defined in override Ext.dom.AbstractElement_static.
Parameters:
_ Js.t
The form
Returns:
Js.js_string Js.t
The url encoded form
method set : 'p1. 'p1 Js.t -> bool Js.t Js.optdef -> 'c Js.t Js.meth
Sets the passed attributes as attributes of this element (a style attribute can be a string, object or function)
Parameters:
_ Js.t
The object with the attributes
bool Js.t
(optional)
false to override the default setAttribute to use expandos.
Defaults to: trueReturns:
Ext_dom_Element.t Js.t
this
method setHTML : Js.js_string Js.t -> 'c Js.t Js.meth
Set the innerHTML of this element
Parameters:
Js.js_string Js.t
The new HTML
Returns:
Ext_dom_Element.t Js.t
this
method setHeight : 'q1. 'q1 Js.t -> 'c Js.t Js.meth
Set the height of this Element.
// change the height to 200px and animate with default configuration
Ext.fly('elementId').setHeight(200, true);
// change the height to 150px and animate with a custom configuration
Ext.fly('elId').setHeight(150, {
duration : 500, // animation will have a duration of .5 seconds
// will change the content to "finished"
callback: function(){ this.update("finished"); }
});
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The new height. This may be one of:
Returns:
Ext_dom_Element.t Js.t
this
method setSize : 'r1 's1. 'r1 Js.t -> 's1 Js.t -> 'c Js.t Js.meth
Set the size of this Element. If animation is true, both width and height will be animated concurrently.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The new width. This may be one of:
{width: widthValue, height: heightValue}
._ Js.t
The new height. This may be one of:
Returns:
Ext_dom_Element.t Js.t
this
method setStyle : 't1. 't1 Js.t -> Js.js_string Js.t Js.optdef -> 'c Js.t Js.meth
Wrapper for setting style properties, also takes single object parameter of multiple styles.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The style property to be set, or an object of multiple styles.
Js.js_string Js.t
(optional)
The value to apply to the given property, or null if an object was passed.
Returns:
Ext_dom_Element.t Js.t
this
method setVisibilityMode : 'u1. 'u1 Js.t -> 'c Js.t Js.meth
Use this to change the visibility mode between VISIBILITY, DISPLAY, OFFSETS or ASCLASS.
Parameters:
_ Js.t
Returns:
#Ext_dom_AbstractElement.t Js.t
this
method setVisible : 'v1. bool Js.t -> 'v1 Js.t Js.optdef -> 'c Js.t Js.meth
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:
bool Js.t
Whether the element is visible
_ Js.t
(optional)
True for the default animation, or a standard Element animation config object
Returns:
Ext_dom_Element.t Js.t
this
method setWidth : 'w1. 'w1 Js.t -> 'c Js.t Js.meth
Set the width of this Element.
Defined in override Ext.dom.AbstractElement_style.
Parameters:
_ Js.t
The new width. This may be one of:
Returns:
Ext_dom_Element.t Js.t
this
method show : 'x1. 'x1 Js.t Js.optdef -> 'c Js.t Js.meth
Show this element - Uses display mode to determine whether to use "display" or "visibility". See setVisible.
Parameters:
_ Js.t
(optional)
true for the default animation or a standard Element animation config object
Returns:
Ext_dom_Element.t Js.t
this
method toggleCls : Js.js_string Js.t -> 'c Js.t Js.meth
Toggles the specified CSS class on this element (removes it if it already exists, otherwise adds it).
Defined in override Ext.dom.AbstractElement_style.
Parameters:
Js.js_string Js.t
The CSS class to toggle
Returns:
Ext_dom_Element.t Js.t
this
method unmask : unit Js.meth
Removes a previously applied mask.
Defined in override Ext.dom.AbstractElement_style.
method up : 'y1.
Js.js_string Js.t ->
'y1 Js.t Js.optdef -> bool Js.t Js.optdef -> 'c Js.t Js.meth
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.dom.Element.
Defined in override Ext.dom.AbstractElement_traversal.
Parameters:
Js.js_string Js.t
The simple selector to test
_ Js.t
(optional)
The max depth to search as a number or an element which causes the upward traversal to stop and is not considered for inclusion as the result. (defaults to 50 || document.documentElement)
bool Js.t
(optional)
True to return the DOM node instead of Ext.dom.Element
Defaults to: falseReturns:
Ext_dom_Element.t Js.t
The matching DOM node (or null if no match was found)
method update : Js.js_string Js.t -> 'c Js.t Js.meth
Update the innerHTML of this element
Parameters:
Js.js_string Js.t
The new HTML
Returns:
Ext_dom_Element.t Js.t
this
method wrap : 'z1 'a2.
'z1 Js.t Js.optdef ->
bool Js.t Js.optdef -> Js.js_string Js.t Js.optdef -> 'a2 Js.t Js.meth
Creates and wraps this element with another element
Defined in override Ext.dom.AbstractElement_insertion.
Parameters:
_ Js.t
(optional)
DomHelper element config object for the wrapper element or null for an empty div
bool Js.t
(optional)
True to return the raw DOM element instead of Ext.dom.AbstractElement
Defaults to: falseJs.js_string Js.t
(optional)
A DomQuery selector to select a descendant node within the created element to use as the wrapping element.
Returns:
_ Js.t
The newly created wrapper element