Touch 2.0.2 Sencha Docs

Ext.feature.has

Files

A simple class to verify if a browser feature exists or not on the current device.

if (Ext.feature.has.Canvas) {
    // do some cool things with canvas here
}

See the list of properties below too see which features are available for detection.

Available since: 2.0.0

Defined By

Properties

Ext.feature.has
view source
: Boolean

True if the current device supports the <audio> tag.

True if the current device supports the <audio> tag.

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if the current device supports Canvas.

True if the current device supports Canvas.

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if document environment supports the HTML5 classList API.

True if document environment supports the HTML5 classList API.

Available since: 2.0.0

True if the current device supports HTML fragment parsing using range.createContextualFragment().

True if the current device supports HTML fragment parsing using range.createContextualFragment().

Available since: 2.0.0

True if the current device supports CSS 3D Transform animations.

True if the current device supports CSS 3D Transform animations.

Available since: 2.0.0

True if the current device supports CSS Animations.

True if the current device supports CSS Animations.

Available since: 2.0.0

True if the current device supports CSS Transform animations.

True if the current device supports CSS Transform animations.

Available since: 2.0.0

True if the current device supports CSS Transitions.

True if the current device supports CSS Transitions.

Available since: 2.0.0

True if the current device supports the devicemotion event.

True if the current device supports the devicemotion event.

Available since: 2.0.0

True if the current device supports Geolocation.

True if the current device supports Geolocation.

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if the current device supports history management with history.pushState().

True if the current device supports history management with history.pushState().

Available since: 2.0.0

True if the current device supports different orientations.

True if the current device supports different orientations.

Available since: 2.0.0

True if the current device supports the orientationchange event.

True if the current device supports the orientationchange event.

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if the current device supports DOM document fragments.

True if the current device supports DOM document fragments.

Available since: 2.0.0

True if the current device supports SQL Databases.

True if the current device supports SQL Databases.

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if the current device supports SVG.

True if the current device supports SVG.

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if the current device supports touch events (touchstart).

True if the current device supports touch events (touchstart).

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if the current device supports the <video> tag.

True if the current device supports the <video> tag.

Available since: 2.0.0

Ext.feature.has
view source
: Boolean

True if the current device supports VML.

True if the current device supports VML.

Available since: 2.0.0

True if the current device supports WebSockets.

True if the current device supports WebSockets.

Available since: 2.0.0