Ext JS 4.2.0 Sencha Docs

Ext.supports

Files

Determines information about features are supported in the current environment

Available since: 4.0.0

Defined By

Properties

True if the Array sort native method isn't bugged.

True if the Array sort native method isn't bugged.

Available since: 4.0.0

True if the device supports the HTML5 audio tag

True if the device supports the HTML5 audio tag

Available since: 4.0.0

True if the browser supports the getBoundingClientRect method on elements

True if the browser supports the getBoundingClientRect method on elements

Available since: 4.0.0

True if the device supports CSS3 border radius

True if the device supports CSS3 border radius

Available since: 4.0.0

True if document environment supports the CSS3 box-shadow style.

True if document environment supports the CSS3 box-shadow style.

Available since: 4.0.0

True if the device supports CSS3DTransform

True if the device supports CSS3DTransform

Available since: 4.0.0

True if the device supports CSS3 linear gradients

True if the device supports CSS3 linear gradients

Available since: 4.0.0

True if the device supports Canvas

True if the device supports Canvas

Available since: 4.0.0

True if document environment supports the HTML5 classList API.

True if document environment supports the HTML5 classList API.

Available since: 4.0.0

True if the browser supports document.defaultView.getComputedStyle()

True if the browser supports document.defaultView.getComputedStyle()

Available since: 4.0.0

True if browser support CreateContextualFragment range native methods.

True if browser support CreateContextualFragment range native methods.

Available since: 4.0.0

True if the device supports device motion (acceleration and rotation rate)

True if the device supports device motion (acceleration and rotation rate)

Available since: 4.0.0

True if when asking for an element's dimension via offsetWidth or offsetHeight, getBoundingClientRect, etc. ...

True if when asking for an element's dimension via offsetWidth or offsetHeight, getBoundingClientRect, etc. the browser returns the subpixel width rounded to the nearest pixel.

Available since: 4.0.0

True if INPUT elements lose their selection when their display style is changed. ...

True if INPUT elements lose their selection when their display style is changed. Essentially, if a text input has focus and its display style is changed, the I-beam disappears.

This bug is encountered due to the work around in place for the RightMargin bug. This has been observed in Safari 4.0.4 and older, and appears to be fixed in Safari 5. It's not clear if Safari 4.1 has the bug, but it has the same WebKit version number as Safari 5 (according to http://unixpapa.com/js/gecko.html).

Available since: 4.0.1

True if TEXTAREA elements lose their selection when their display style is changed. ...

True if TEXTAREA elements lose their selection when their display style is changed. Essentially, if a text area has focus and its display style is changed, the I-beam disappears.

This bug is encountered due to the work around in place for the RightMargin bug. This has been observed in Chrome 10 and Safari 5 and older, and appears to be fixed in Chrome 11.

Available since: 4.0.1

True if the device supports CSS float

True if the device supports CSS float

Available since: 4.0.0

True if the device supports GeoLocation

True if the device supports GeoLocation

Available since: 4.0.0

True if the browser will return the left/top/right/bottom position as a percentage when explicitly set as a percentag...

True if the browser will return the left/top/right/bottom position as a percentage when explicitly set as a percentage value.

Available since: 4.1.0

True if the device supports HTML5 history

True if the device supports HTML5 history

Available since: 4.0.0

True if localStorage is supported

True if localStorage is supported

Available since: 4.1.2

True if the browser supports mouseenter and mouseleave events

True if the browser supports mouseenter and mouseleave events

Available since: 4.0.0

True if the browser supports the mousewheel event

True if the browser supports the mousewheel event

Available since: 4.0.0

True if the browser supports normal css opacity

True if the browser supports normal css opacity

Available since: 4.0.0

True if the device supports orientation change

True if the device supports orientation change

Available since: 4.0.0

In some browsers (IE quirks, IE6, IE7, IE9, chrome, safari and opera at the time of this writing) a percentage-height...

In some browsers (IE quirks, IE6, IE7, IE9, chrome, safari and opera at the time of this writing) a percentage-height element ignores the horizontal scrollbar of its parent element. This method returns true if the browser is affected by this bug.

Available since: Ext JS 4.2.0

True if the browser supports the HTML5 placeholder attribute on inputs

True if the browser supports the HTML5 placeholder attribute on inputs

Available since: 4.0.0

True if document environment supports the CSS3 pointer-events style.

True if document environment supports the CSS3 pointer-events style.

Available since: 4.1.0

True if browser support document.createRange native method.

True if browser support document.createRange native method.

Available since: 4.0.0

True if the device supports right margin. ...

True if the device supports right margin. See https://bugs.webkit.org/show_bug.cgi?id=13343 for why this is needed.

Available since: 4.0.0

True if the BoundingClientRect is rotated when the element is rotated using a CSS transform.

True if the BoundingClientRect is rotated when the element is rotated using a CSS transform.

Available since: 4.1.3

Ext.supports
view source
: Boolean

True if the device supports SVG

True if the device supports SVG

Available since: 4.1.1

True if the browser supports maxlength on textareas.

True if the browser supports maxlength on textareas.

Available since: 4.1.0

True if the browser passes the "actualLateness" parameter to setTimeout. ...

True if the browser passes the "actualLateness" parameter to setTimeout. See: https://developer.mozilla.org/en/DOM/window.setTimeout

Available since: 4.1.0

True if the device supports touch

True if the device supports touch

Available since: 4.0.0

True if the device supports CSS3 Transitions

True if the device supports CSS3 Transitions

Available since: 4.0.0

True if the device supports transparent color

True if the device supports transparent color

Available since: 4.0.0

Ext.supports
view source
: Boolean

True if the device supports VML

True if the device supports VML

Available since: 4.1.1

True if browser supports window.onerror.

True if browser supports window.onerror.

Available since: 4.0.1

Ext.supports
view source
: Booleanprivate
In Chrome 24.0, an RTL element which has vertical overflow positions its right X origin incorrectly. ...

In Chrome 24.0, an RTL element which has vertical overflow positions its right X origin incorrectly. It skips a non-existent scrollbar which has been moved to the left edge due to the RTL setting.

http://code.google.com/p/chromium/issues/detail?id=174656

This method returns true if the browser is affected by this bug.

Available since: Ext JS 4.2.0

Defined By

Methods

Ext.supports
view source
( )private
Generates a support vector for the current browser/mode. ...

Generates a support vector for the current browser/mode. The result can be added to supportsVectors to eliminate feature detection at startup time.

Available since: Ext JS 4.2.0

Ext.supports
view source
( )private
Runs feature detection routines and sets the various flags. ...

Runs feature detection routines and sets the various flags. This is called when the scripts loads (very early) and again at Ext.onReady. Some detections are flagged as early and run immediately. Others that require the document body will not run until ready.

Each test is run only once, so calling this method from an onReady function is safe and ensures that all flags have been set.

Available since: 4.1.0