Class type Ext_dom_Element.t


class type t = object .. end
Inherits
method autoBoxAdjust : bool Js.t Js.prop

True to automatically adjust width and height settings for box-model issues.

Defaults to: true

method originalDisplay : Js.js_string Js.t Js.prop

The element's default display mode.

Defined in override Ext.dom.Element_fx.

Defaults to: ""

method addClsOnClick : 'a 'b.
Js.js_string Js.t ->
'a Js.callback Js.optdef ->
'b Js.t Js.optdef ->
(< addCls : 'e. 'e Js.t -> 'd Js.t Js.meth; addClsOnClick : 'a 'b. 'c;
addClsOnFocus : 'f 'g.
Js.js_string Js.t ->
'f Js.callback Js.optdef ->
'g Js.t Js.optdef -> 'd Js.t Js.meth;
addClsOnOver : 'h 'i.
Js.js_string Js.t ->
'h Js.callback Js.optdef ->
'i Js.t Js.optdef -> 'd Js.t Js.meth;
addKeyListener : 'j 'k 'l.
'j Js.t ->
'k Js.callback ->
'l Js.t Js.optdef -> Ext_util_KeyMap.t Js.t Js.meth;
addKeyMap : 'm. 'm Js.t -> Ext_util_KeyMap.t Js.t Js.meth;
addListener : 'n 'o 'p.
Js.js_string Js.t ->
'n Js.callback ->
'o Js.t Js.optdef ->
'p Js.t Js.optdef -> 'd Js.t Js.meth;
animate : 'q. 'q Js.t -> 'd Js.t Js.meth;
appendChild : 'r. 'r Js.t -> bool Js.t Js.optdef -> 'd Js.t Js.meth;
appendTo : 's. 's Js.t -> 'd Js.t Js.meth;
applyStyles : 't. 't Js.t -> 'd Js.t Js.meth;
autoBoxAdjust : bool Js.t Js.prop; blur : 'd Js.t Js.meth;
boxWrap : Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth;
cacheScrollValues : 'u. 'u Js.callback Js.meth;
callParent : 'v 'w. 'v Js.t -> 'w Js.t Js.meth;
callSuper : 'x 'y. 'x Js.t -> 'y Js.t Js.meth;
center : 'z. 'z Js.t -> unit Js.meth;
child : 'a1.
Js.js_string Js.t -> bool Js.t Js.optdef -> 'a1 Js.t Js.meth;
clean : bool Js.t Js.optdef -> unit Js.meth;
clearListeners : 'd Js.t Js.meth; clearOpacity : 'd Js.t Js.meth;
clearPositioning : Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth;
clip : 'd Js.t Js.meth; contains : 'b1. 'b1 Js.t -> bool Js.t Js.meth;
createChild : 'c1.
'c1 Js.t ->
Dom_html.element Js.t Js.optdef ->
bool Js.t Js.optdef -> 'd Js.t Js.meth;
createProxy : 'd1 'e1.
'd1 Js.t ->
'e1 Js.t Js.optdef ->
bool Js.t Js.optdef -> 'd Js.t Js.meth;
createShim : 'd 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 : 'f1. Js.js_string Js.t -> bool Js.t Js.optdef -> 'f1 Js.t Js.meth;
enableDisplayMode : Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth;
fadeIn : 'g1. 'g1 Js.t Js.optdef -> 'd Js.t Js.meth;
fadeOut : 'h1. 'h1 Js.t Js.optdef -> 'd Js.t Js.meth;
findParent : 'i1.
Js.js_string Js.t ->
'i1 Js.t Js.optdef ->
bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth;
findParentNode : 'j1.
Js.js_string Js.t ->
'j1 Js.t Js.optdef ->
bool Js.t Js.optdef -> Dom_html.element Js.t Js.meth;
first : 'k1.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'k1 Js.t Js.meth;
focus : Js.number Js.t Js.optdef -> 'd Js.t Js.meth;
focusable : 'l1. 'l1 Js.t -> bool Js.t Js.meth;
frame : 'm1.
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.optdef ->
'm1 Js.t Js.optdef -> 'd 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;
getAttributeNS : Js.js_string Js.t ->
Js.js_string Js.t -> 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;
getColor : Js.js_string Js.t ->
Js.js_string Js.t ->
Js.js_string Js.t Js.optdef -> unit Js.meth;
getComputedHeight : Js.number Js.t Js.meth;
getComputedWidth : Js.number Js.t Js.meth;
getFrameWidth : Js.js_string Js.t -> Js.number Js.t Js.meth;
getHTML : unit Js.meth;
getHeight : bool Js.t Js.optdef -> Js.number Js.t Js.meth;
getInitialConfig : 'n1. Js.js_string Js.t Js.optdef -> 'n1 Js.t Js.meth;
getLoader : Ext_ElementLoader.t Js.t Js.meth;
getLocalX : Js.number Js.t Js.meth;
getLocalXY : 'o1. 'o1 Js.js_array Js.t Js.meth;
getLocalY : Js.number Js.t Js.meth;
getMargin : 'p1. Js.js_string Js.t Js.optdef -> 'p1 Js.t Js.meth;
getPadding : Js.js_string Js.t -> Js.number Js.t Js.meth;
getScroll : 'q1. 'q1 Js.t Js.meth;
getScrollLeft : Js.number Js.t Js.meth;
getScrollTop : Js.number Js.t Js.meth;
getSize : 'r1. bool Js.t Js.optdef -> 'r1 Js.t Js.meth;
getStyle : 's1 't1. 's1 Js.t -> bool Js.t Js.optdef -> 't1 Js.t Js.meth;
getStyleSize : 'u1. 'u1 Js.t Js.meth;
getTextWidth : Js.js_string Js.t ->
Js.number Js.t Js.optdef ->
Js.number Js.t Js.optdef -> Js.number Js.t Js.meth;
getValue : 'v1. bool Js.t -> 'v1 Js.t Js.meth;
getViewSize : 'w1. 'w1 Js.t Js.meth;
getWidth : bool Js.t Js.optdef -> Js.number Js.t Js.meth;
getX : Js.number Js.t Js.meth; getY : Js.number Js.t Js.meth;
ghost : 'x1.
Js.js_string Js.t Js.optdef ->
'x1 Js.t Js.optdef -> 'd Js.t Js.meth;
hasCls : Js.js_string Js.t -> bool Js.t Js.meth;
hide : 'y1. 'y1 Js.t Js.optdef -> 'd Js.t Js.meth;
highlight : 'z1.
Js.js_string Js.t Js.optdef ->
'z1 Js.t Js.optdef -> 'd Js.t Js.meth;
hover : 'a2 'b2 'c2 'd2.
'a2 Js.callback ->
'b2 Js.callback ->
'c2 Js.t Js.optdef -> 'd2 Js.t Js.optdef -> 'd Js.t Js.meth;
id : Js.js_string Js.t Js.prop;
initConfig : 'e2. 'e2 Js.t -> 'd Js.t Js.meth;
initDD : 'f2 'g2.
Js.js_string Js.t ->
'f2 Js.t -> 'g2 Js.t -> Ext_dd_DD.t Js.t Js.meth;
initDDProxy : 'h2 'i2.
Js.js_string Js.t ->
'h2 Js.t -> 'i2 Js.t -> Ext_dd_DDProxy.t Js.t Js.meth;
initDDTarget : 'j2 'k2.
Js.js_string Js.t ->
'j2 Js.t -> 'k2 Js.t -> Ext_dd_DDTarget.t Js.t Js.meth;
insertAfter : 'l2. 'l2 Js.t -> 'd Js.t Js.meth;
insertBefore : 'm2. 'm2 Js.t -> 'd Js.t Js.meth;
insertFirst : 'n2. 'n2 Js.t -> 'd Js.t Js.meth;
insertHtml : 'o2.
Js.js_string Js.t ->
Js.js_string Js.t ->
bool Js.t Js.optdef -> 'o2 Js.t Js.meth;
insertSibling : 'p2.
'p2 Js.t ->
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'd Js.t Js.meth;
is : Js.js_string Js.t -> bool Js.t Js.meth;
isBorderBox : bool Js.t Js.meth; isDisplayed : bool Js.t Js.meth;
isFocusable : 'q2. 'q2 Js.t -> bool Js.t Js.meth;
isMasked : bool Js.t Js.meth; isScrollable : 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;
isVisible : bool Js.t Js.optdef -> bool Js.t Js.meth;
last : 'r2.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'r2 Js.t Js.meth;
load : 's2. 's2 Js.t -> 'd Js.t Js.meth;
mask : Js.js_string Js.t Js.optdef ->
Js.js_string Js.t Js.optdef -> unit Js.meth;
mask_element : Js.js_string Js.t Js.optdef ->
Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth;
monitorMouseLeave : 't2 'u2 'v2.
Js.number Js.t ->
't2 Js.callback ->
'u2 Js.t Js.optdef -> 'v2 Js.t Js.meth;
needsTabIndex : unit Js.meth;
next : 'w2.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'w2 Js.t Js.meth;
on : 'x2 'y2 'z2.
Js.js_string Js.t ->
'x2 Js.callback ->
'y2 Js.t Js.optdef -> 'z2 Js.t Js.optdef -> 'd Js.t Js.meth;
originalDisplay : Js.js_string Js.t Js.prop;
parent : 'a3.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'a3 Js.t Js.meth;
position : Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.optdef ->
Js.number Js.t Js.optdef ->
Js.number Js.t Js.optdef -> unit Js.meth;
prev : 'b3.
Js.js_string Js.t Js.optdef ->
bool Js.t Js.optdef -> 'b3 Js.t Js.meth;
puff : 'c3. 'c3 Js.t Js.optdef -> 'd Js.t Js.meth;
purgeAllListeners : 'd Js.t Js.meth;
query : Js.js_string Js.t ->
Dom_html.element Js.t Js.js_array Js.t Js.meth;
radioCls : 'd3. 'd3 Js.t -> 'd Js.t Js.meth;
relayEvent : 'e3. Js.js_string Js.t -> 'e3 Js.t -> unit Js.meth;
remove : unit Js.meth; removeAllListeners : 'd Js.t Js.meth;
removeCls : 'f3. 'f3 Js.t -> 'd Js.t Js.meth;
removeListener : 'g3 'h3.
Js.js_string Js.t ->
'g3 Js.callback -> 'h3 Js.t -> 'd Js.t Js.meth;
repaint : 'd Js.t Js.meth; replace : 'i3. 'i3 Js.t -> 'd Js.t Js.meth;
replaceCls : Js.js_string Js.t -> Js.js_string Js.t -> 'd Js.t Js.meth;
replaceWith : 'j3. 'j3 Js.t -> 'd Js.t Js.meth;
scroll : 'k3.
Js.js_string Js.t ->
Js.number Js.t -> 'k3 Js.t Js.optdef -> bool Js.t Js.meth;
scrollBy : 'l3 'm3 'n3.
'l3 Js.t -> 'm3 Js.t -> 'n3 Js.t -> 'd Js.t Js.meth;
scrollIntoView : 'o3 'p3.
'o3 Js.t Js.optdef ->
bool Js.t Js.optdef ->
'p3 Js.t Js.optdef ->
bool Js.t Js.optdef -> 'd Js.t Js.meth;
scrollTo : 'q3.
Js.js_string Js.t ->
Js.number Js.t -> 'q3 Js.t Js.optdef -> 'd Js.t Js.meth;
select : 'r3.
Js.js_string Js.t -> bool Js.t Js.optdef -> 'r3 Js.t Js.meth;
selectable : 'd Js.t Js.meth; self : Ext_Class.t Js.t Js.prop;
serializeForm : 's3. 's3 Js.t -> Js.js_string Js.t Js.meth;
set : 't3. 't3 Js.t -> bool Js.t Js.optdef -> 'd Js.t Js.meth;
setDisplayed : 'u3. 'u3 Js.t -> 'd Js.t Js.meth;
setHTML : Js.js_string Js.t -> 'd Js.t Js.meth;
setHeight : 'v3. 'v3 Js.t -> 'd Js.t Js.meth;
setOpacity : 'w3.
Js.number Js.t -> 'w3 Js.t Js.optdef -> 'd Js.t Js.meth;
setPositioning : 'x3. 'x3 Js.t -> 'd Js.t Js.meth;
setScrollLeft : Js.number Js.t -> 'd Js.t Js.meth;
setScrollTop : Js.number Js.t -> 'd Js.t Js.meth;
setSize : 'y3 'z3. 'y3 Js.t -> 'z3 Js.t -> 'd Js.t Js.meth;
setStyle : 'a4.
'a4 Js.t -> Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth;
setVisibilityMode : 'b4. 'b4 Js.t -> 'd Js.t Js.meth;
setVisible : 'c4. bool Js.t -> 'c4 Js.t Js.optdef -> 'd Js.t Js.meth;
setWidth : 'd4. 'd4 Js.t -> 'd Js.t Js.meth;
show : 'e4. 'e4 Js.t Js.optdef -> 'd Js.t Js.meth;
slideIn : 'f4.
Js.js_string Js.t Js.optdef ->
'f4 Js.t Js.optdef -> 'd Js.t Js.meth;
slideOut : 'g4.
Js.js_string Js.t Js.optdef ->
'g4 Js.t Js.optdef -> 'd Js.t Js.meth;
statics : Ext_Class.t Js.t Js.meth;
swallowEvent : 'h4. 'h4 Js.t -> bool Js.t Js.optdef -> 'd Js.t Js.meth;
switchOff : 'i4. 'i4 Js.t Js.optdef -> 'd Js.t Js.meth;
toggle : 'j4. 'j4 Js.t Js.optdef -> 'd Js.t Js.meth;
toggleCls : Js.js_string Js.t -> 'd Js.t Js.meth;
un : 'k4 'l4.
Js.js_string Js.t ->
'k4 Js.callback -> 'l4 Js.t -> 'd Js.t Js.meth;
unclip : 'd Js.t Js.meth; unmask : unit Js.meth;
unselectable : 'd Js.t Js.meth;
up : 'm4.
Js.js_string Js.t ->
'm4 Js.t Js.optdef -> bool Js.t Js.optdef -> 'd Js.t Js.meth;
update : Js.js_string Js.t -> 'd Js.t Js.meth;
update_html : 'n4.
Js.js_string Js.t ->
bool Js.t Js.optdef ->
'n4 Js.callback Js.optdef -> 'd Js.t Js.meth;
wrap : 'o4 'p4.
'o4 Js.t Js.optdef ->
bool Js.t Js.optdef ->
Js.js_string Js.t Js.optdef -> 'p4 Js.t Js.meth;
.. >
as 'd)
Js.t Js.meth as 'c

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)

Defined in override Ext.dom.Element_style.

Parameters:

Returns:


method addClsOnFocus : 'f 'g.
Js.js_string Js.t ->
'f Js.callback Js.optdef -> 'g Js.t Js.optdef -> 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_style.

Parameters:

Returns:


method addClsOnOver : 'h 'i.
Js.js_string Js.t ->
'h Js.callback Js.optdef -> 'i Js.t Js.optdef -> 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_style.

Parameters:

Returns:


method addKeyListener : 'j 'k 'l.
'j Js.t ->
'k Js.callback -> 'l Js.t Js.optdef -> Ext_util_KeyMap.t Js.t Js.meth

Convenience method for constructing a KeyMap

Parameters:

Returns:


method addKeyMap : 'm. 'm Js.t -> Ext_util_KeyMap.t Js.t Js.meth

Creates a KeyMap for this element

Parameters:

Returns:


method addListener : 'n 'o 'p.
Js.js_string Js.t ->
'n Js.callback -> 'o Js.t Js.optdef -> 'p Js.t Js.optdef -> 'd Js.t Js.meth

Shorthand for on.

Appends an event handler to this element.

Parameters:

Returns:


method animate : 'q. 'q Js.t -> 'd Js.t Js.meth

Performs custom animation on this Element.

The following properties may be specified in from, to, and keyframe objects:

Be aware that animating an Element which is being used by an Ext Component without in some way informing the Component about the changed element state will result in incorrect Component behaviour. This is because the Component will be using the old state of the element. To avoid this problem, it is now possible to directly animate certain properties of Components.

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method blur : 'd Js.t Js.meth

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

Returns:


method boxWrap : Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth

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.Button, Ext.panel.Panel when frame=true, Ext.window.Window). The markup is of this form:

Ext.dom.Element.boxMarkup =
'<div class="{0}-tl"><div class="{0}-tr"><div class="{0}-tc"></div></div></div>
<div class="{0}-ml"><div class="{0}-mr"><div class="{0}-mc"></div></div></div>
<div class="{0}-bl"><div class="{0}-br"><div class="{0}-bc"></div></div></div>';

Example usage:

// Basic box wrap
Ext.get("foo").boxWrap();

// You can also add a custom class and use CSS inheritance rules to customize the box look.
// 'x-box-blue' is a built-in alternative -- look at the related CSS definitions as an example
// for how to create a custom box wrap style.
Ext.get("foo").boxWrap().addCls("x-box-blue");

Defined in override Ext.dom.Element_style.

Parameters:

Returns:


method cacheScrollValues : 'u. 'u Js.callback Js.meth

When an element is moved around in the DOM, or is hidden using display:none, it loses layout, and therefore all scroll positions of all descendant elements are lost.

This function caches them, and returns a function, which when run will restore the cached positions. In the following example, the Panel is moved from one Container to another which will cause it to lose all scroll positions:

var restoreScroll = myPanel.el.cacheScrollValues();
myOtherContainer.add(myPanel);
restoreScroll();

Returns:


method center : 'z. 'z Js.t -> unit Js.meth

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

Defined in override Ext.dom.Element_position.

Parameters:


method clean : bool Js.t Js.optdef -> unit Js.meth

Removes Empty, or whitespace filled text nodes. Combines adjacent text nodes.

Parameters:


method clearListeners : 'd Js.t Js.meth

Alias for removeAllListeners.

Removes all previous added listeners from this element

Returns:


method clearOpacity : 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_style.

Returns:


method clearPositioning : Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth

Clears positioning back to the default when the document was loaded.

Defined in override Ext.dom.Element_position.

Parameters:

Returns:


method clip : 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_style.

Returns:


method createProxy : 'd1 'e1.
'd1 Js.t -> 'e1 Js.t Js.optdef -> bool Js.t Js.optdef -> 'd Js.t Js.meth

Creates a proxy element of this element

Parameters:

Returns:


method createShim : 'd Js.t Js.meth

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

Returns:


method enableDisplayMode : Js.js_string Js.t Js.optdef -> 'd Js.t Js.meth

Convenience method for setVisibilityMode(Element.DISPLAY)

Parameters:

Returns:


method fadeIn : 'g1. 'g1 Js.t Js.optdef -> 'd Js.t Js.meth

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

// default: fade in from opacity 0 to 100%
el.fadeIn();

// custom: fade in from opacity 0 to 75% over 2 seconds
el.fadeIn({ opacity: .75, duration: 2000});

// common config options shown with default values
el.fadeIn({
    opacity: 1, //can be any value between 0 and 1 (e.g. .5)
    easing: 'easeOut',
    duration: 500
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method fadeOut : 'h1. 'h1 Js.t Js.optdef -> 'd Js.t Js.meth

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

// default: fade out from the element's current opacity to 0
el.fadeOut();

// custom: fade out from the element's current opacity to 25% over 2 seconds
el.fadeOut({ opacity: .25, duration: 2000});

// common config options shown with default values
el.fadeOut({
    opacity: 0, //can be any value between 0 and 1 (e.g. .5)
    easing: 'easeOut',
    duration: 500,
    remove: false,
    useDisplay: false
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method focus : Js.number Js.t Js.optdef -> 'd Js.t Js.meth

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

Parameters:

Returns:


method focusable : 'l1. 'l1 Js.t -> bool Js.t Js.meth

Alias for isFocusable.

Checks whether this element can be focused.

Parameters:

Returns:


method frame : 'm1.
Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.optdef -> 'm1 Js.t Js.optdef -> 'd Js.t Js.meth

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

// default: a single light blue ripple
el.frame();

// custom: 3 red ripples lasting 3 seconds total
el.frame("#ff0000", 3, { duration: 3000 });

// common config options shown with default values
el.frame("#C3DAF9", 1, {
    duration: 1000 // duration of each individual ripple.
    // Note: Easing is not configurable and will be ignored if included
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method getAttributeNS : Js.js_string Js.t -> Js.js_string Js.t -> Js.js_string Js.t Js.meth

Returns the value of a namespaced attribute from the element's underlying DOM node.

Parameters:

Returns:


method getColor : Js.js_string Js.t ->
Js.js_string Js.t -> Js.js_string Js.t Js.optdef -> unit Js.meth

Return the CSS color for the specified CSS attribute. rgb, 3 digit (like #fff) and valid values are convert to standard 6 digit hex color.

Defined in override Ext.dom.Element_style.

Parameters:


method getComputedHeight : Js.number Js.t Js.meth

Returns either the offsetHeight or the height of this element based on CSS height adjusted by padding or borders when needed to simulate offsetHeight when offsets aren't available. This may not work on display:none elements if a height has not been set using CSS.

Defined in override Ext.dom.Element_style.


method getComputedWidth : Js.number Js.t Js.meth

Returns either the offsetWidth or the width of this element based on CSS width adjusted by padding or borders when needed to simulate offsetWidth when offsets aren't available. This may not work on display:none elements if a width has not been set using CSS.

Defined in override Ext.dom.Element_style.


method getFrameWidth : Js.js_string Js.t -> Js.number Js.t Js.meth

Returns the sum width of the padding and borders for the passed "sides". See getBorderWidth() for more information about the sides.

Defined in override Ext.dom.Element_style.

Parameters:


method getLoader : Ext_ElementLoader.t Js.t Js.meth

Gets this element's ElementLoader

Returns:


method getLocalX : Js.number Js.t Js.meth

Gets the local CSS X position for the element

Defined in override Ext.dom.Element_position.


method getLocalXY : 'o1. 'o1 Js.js_array Js.t Js.meth

Gets the local CSS X and Y position for the element

Defined in override Ext.dom.Element_position.

Returns:


method getLocalY : Js.number Js.t Js.meth

Gets the local CSS Y position for the element

Defined in override Ext.dom.Element_position.


method getScroll : 'q1. 'q1 Js.t Js.meth

Returns the current scroll position of the element.

Defined in override Ext.dom.Element_scroll.

Returns:


method getScrollLeft : Js.number Js.t Js.meth

Gets the left scroll position

Defined in override Ext.dom.Element_scroll.

Returns:


method getScrollTop : Js.number Js.t Js.meth

Gets the top scroll position

Defined in override Ext.dom.Element_scroll.

Returns:


method getStyleSize : 'u1. 'u1 Js.t Js.meth

Returns the dimensions of the element available to lay content out in.

getStyleSize utilizes prefers style sizing if present, otherwise it chooses the larger of offsetHeight/clientHeight and offsetWidth/clientWidth. To obtain the size excluding scrollbars, use getViewSize.

Sizing of the document body is handled at the adapter level which handles special cases for IE and strict modes, etc.

Defined in override Ext.dom.Element_style.

Returns:


method getTextWidth : Js.js_string Js.t ->
Js.number Js.t Js.optdef ->
Js.number Js.t Js.optdef -> Js.number Js.t Js.meth

Returns the width in pixels of the passed text, or the width of the text in this Element.

Parameters:

Returns:


method getX : Js.number Js.t Js.meth

Gets element X position in page coordinates

Defined in override Ext.dom.Element_position.


method getY : Js.number Js.t Js.meth

Gets element Y position in page coordinates

Defined in override Ext.dom.Element_position.


method ghost : 'x1. Js.js_string Js.t Js.optdef -> 'x1 Js.t Js.optdef -> 'd Js.t Js.meth

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

// default: slide the element downward while fading out
el.ghost();

// custom: slide the element out to the right with a 2-second duration
el.ghost('r', { duration: 2000 });

// common config options shown with default values
el.ghost('b', {
    easing: 'easeOut',
    duration: 500
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method hide : 'y1. 'y1 Js.t Js.optdef -> 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_fx.

Parameters:

Returns:


method highlight : 'z1. Js.js_string Js.t Js.optdef -> 'z1 Js.t Js.optdef -> 'd Js.t Js.meth

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. Usage:

// default: highlight background to yellow
el.highlight();

// custom: highlight foreground text to blue for 2 seconds
el.highlight("0000ff", { attr: 'color', duration: 2000 });

// common config options shown with default values
el.highlight("ffff9c", {
    attr: "backgroundColor", //can be any valid CSS property (attribute) that supports a color value
    endColor: (current color) or "ffffff",
    easing: 'easeIn',
    duration: 1000
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method hover : 'a2 'b2 'c2 'd2.
'a2 Js.callback ->
'b2 Js.callback ->
'c2 Js.t Js.optdef -> 'd2 Js.t Js.optdef -> 'd Js.t Js.meth

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

Parameters:

Returns:


method initDD : 'f2 'g2.
Js.js_string Js.t -> 'f2 Js.t -> 'g2 Js.t -> Ext_dd_DD.t Js.t Js.meth

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

Defined in override Ext.dom.Element_dd.

Parameters:

Returns:


method initDDProxy : 'h2 'i2.
Js.js_string Js.t -> 'h2 Js.t -> 'i2 Js.t -> Ext_dd_DDProxy.t Js.t Js.meth

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

Defined in override Ext.dom.Element_dd.

Parameters:

Returns:


method initDDTarget : 'j2 'k2.
Js.js_string Js.t -> 'j2 Js.t -> 'k2 Js.t -> Ext_dd_DDTarget.t Js.t Js.meth

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

Defined in override Ext.dom.Element_dd.

Parameters:

Returns:


method isBorderBox : bool Js.t Js.meth

Tests various css rules/browsers to determine if this element uses a border box


method isDisplayed : bool Js.t Js.meth

Returns true if display is not "none"


method isFocusable : 'q2. 'q2 Js.t -> bool Js.t Js.meth

Checks whether this element can be focused.

Parameters:

Returns:


method isMasked : bool Js.t Js.meth

Returns true if this element is masked. Also re-centers any displayed message within the mask.


method isScrollable : bool Js.t Js.meth

Returns true if this element is scrollable.

Defined in override Ext.dom.Element_scroll.


method isVisible : bool Js.t Js.optdef -> bool Js.t Js.meth

Checks whether the element is currently visible using both visibility and display properties.

Parameters:

Returns:


method load : 's2. 's2 Js.t -> 'd Js.t Js.meth

Direct access to the Ext.ElementLoader Ext.ElementLoader.load method. The method takes the same object parameter as Ext.ElementLoader.load

Parameters:

Returns:


method mask_element : Js.js_string Js.t Js.optdef -> Js.js_string Js.t Js.optdef -> 'd Js.t 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.

Parameters:

Returns:


method monitorMouseLeave : 't2 'u2 'v2.
Js.number Js.t -> 't2 Js.callback -> 'u2 Js.t Js.optdef -> 'v2 Js.t Js.meth

Monitors this Element for the mouse leaving. Calls the function after the specified delay only if the mouse was not moved back into the Element within the delay. If the mouse was moved back in, the function is not called.

Parameters:

Returns:


method needsTabIndex : unit Js.meth

Returns true if this element needs an explicit tabIndex to make it focusable. Input fields, text areas, buttons anchors elements with an href etc do not need a tabIndex, but structural elements do.


method on : 'x2 'y2 'z2.
Js.js_string Js.t ->
'x2 Js.callback ->
'y2 Js.t Js.optdef -> 'z2 Js.t Js.optdef -> 'd Js.t Js.meth

Appends an event handler to this element.

Parameters:

Returns:


method position : Js.js_string Js.t Js.optdef ->
Js.number Js.t Js.optdef ->
Js.number Js.t Js.optdef -> Js.number Js.t Js.optdef -> unit Js.meth

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.

Defined in override Ext.dom.Element_position.

Parameters:


method puff : 'c3. 'c3 Js.t Js.optdef -> 'd Js.t Js.meth

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. Usage:

// default
el.puff();

// common config options shown with default values
el.puff({
    easing: 'easeOut',
    duration: 500,
    useDisplay: false
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method purgeAllListeners : 'd Js.t Js.meth

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

Returns:


method relayEvent : 'e3. Js.js_string Js.t -> 'e3 Js.t -> unit Js.meth

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:


method removeAllListeners : 'd Js.t Js.meth

Removes all previous added listeners from this element

Returns:


method removeListener : 'g3 'h3. Js.js_string Js.t -> 'g3 Js.callback -> 'h3 Js.t -> 'd Js.t Js.meth

Shorthand for un.

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.

Example:

el.un('click', this.handlerFn);
// or
el.removeListener('click', this.handlerFn);

Parameters:

Returns:


method scroll : 'k3.
Js.js_string Js.t ->
Js.number Js.t -> 'k3 Js.t Js.optdef -> bool Js.t Js.meth

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

Defined in override Ext.dom.Element_scroll.

Parameters:

Returns:


method scrollBy : 'l3 'm3 'n3. 'l3 Js.t -> 'm3 Js.t -> 'n3 Js.t -> 'd Js.t Js.meth

Scrolls this element by the passed delta values, optionally animating.

All of the following are equivalent:

 el.scrollBy(10, 10, true);
 el.scrollBy([10, 10], true);
 el.scrollBy({ x: 10, y: 10 }, true);

Defined in override Ext.dom.Element_scroll.

Parameters:

Returns:


method scrollIntoView : 'o3 'p3.
'o3 Js.t Js.optdef ->
bool Js.t Js.optdef ->
'p3 Js.t Js.optdef -> bool Js.t Js.optdef -> 'd Js.t Js.meth

Scrolls this element into view within the passed container.

Defined in override Ext.dom.Element_scroll.

Parameters:

Returns:


method scrollTo : 'q3.
Js.js_string Js.t ->
Js.number Js.t -> 'q3 Js.t Js.optdef -> 'd Js.t Js.meth

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.

Defined in override Ext.dom.Element_scroll.

Parameters:

Returns:


method selectable : 'd Js.t Js.meth

Enable text selection for this element (normalized across browsers)

Defined in override Ext.dom.Element_style.

Returns:


method setDisplayed : 'u3. 'u3 Js.t -> 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_fx.

Parameters:

Returns:


method setOpacity : 'w3. Js.number Js.t -> 'w3 Js.t Js.optdef -> 'd Js.t Js.meth

Set the opacity of the element

Defined in override Ext.dom.Element_style.

Parameters:

Returns:


method setPositioning : 'x3. 'x3 Js.t -> 'd Js.t Js.meth

Set positioning with an object returned by getPositioning.

Defined in override Ext.dom.Element_position.

Parameters:

Returns:


method setScrollLeft : Js.number Js.t -> 'd Js.t Js.meth

Sets the left scroll position

Defined in override Ext.dom.Element_scroll.

Parameters:

Returns:


method setScrollTop : Js.number Js.t -> 'd Js.t Js.meth

Sets the top scroll position

Defined in override Ext.dom.Element_scroll.

Parameters:

Returns:


method setVisible : 'c4. bool Js.t -> 'c4 Js.t Js.optdef -> 'd 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.

Defined in override Ext.dom.Element_fx.

Parameters:

Returns:


method show : 'e4. 'e4 Js.t Js.optdef -> 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_fx.

Parameters:

Returns:


method slideIn : 'f4. Js.js_string Js.t Js.optdef -> 'f4 Js.t Js.optdef -> 'd Js.t Js.meth

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 Ext.fx.Anim class overview for valid anchor point options. Usage:

// default: slide the element in from the top
el.slideIn();

// custom: slide the element in from the right with a 2-second duration
el.slideIn('r', { duration: 2000 });

// common config options shown with default values
el.slideIn('t', {
    easing: 'easeOut',
    duration: 500
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method slideOut : 'g4. Js.js_string Js.t Js.optdef -> 'g4 Js.t Js.optdef -> 'd Js.t Js.meth

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. See the Ext.fx.Anim class overview for valid anchor point options. Usage:

// default: slide the element out to the top
el.slideOut();

// custom: slide the element out to the right with a 2-second duration
el.slideOut('r', { duration: 2000 });

// common config options shown with default values
el.slideOut('t', {
    easing: 'easeOut',
    duration: 500,
    remove: false,
    useDisplay: false
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method swallowEvent : 'h4. 'h4 Js.t -> bool Js.t Js.optdef -> 'd Js.t Js.meth

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

Parameters:

Returns:


method switchOff : 'i4. 'i4 Js.t Js.optdef -> 'd Js.t Js.meth

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. Usage:

// default
el.switchOff();

// all config options shown with default values
el.switchOff({
    easing: 'easeIn',
    duration: .3,
    remove: false,
    useDisplay: false
});

Defined in override Ext.dom.Element_anim.

Parameters:

Returns:


method toggle : 'j4. 'j4 Js.t Js.optdef -> 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_fx.

Parameters:

Returns:


method un : 'k4 'l4. Js.js_string Js.t -> 'k4 Js.callback -> 'l4 Js.t -> 'd Js.t Js.meth

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.

Example:

el.un('click', this.handlerFn);
// or
el.removeListener('click', this.handlerFn);

Parameters:

Returns:


method unclip : 'd Js.t Js.meth

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

Defined in override Ext.dom.Element_style.

Returns:


method unmask : unit Js.meth

Hides a previously applied mask.


method unselectable : 'd Js.t Js.meth

Disables text selection for this element (normalized across browsers)

Defined in override Ext.dom.Element_style.

Returns:


method update_html : 'n4.
Js.js_string Js.t ->
bool Js.t Js.optdef -> 'n4 Js.callback Js.optdef -> 'd Js.t Js.meth

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

Parameters:

Returns: