Utils

This section describes the utility methods and objects that can be used in different application parts such as widgets, data and the application framework.

devices

A namespace that provides methods and events specifying information on the current device.

Included in: dx.phonejs.js, dx.webappjs.js, dx.chartjs.js, dx.all.js

fx

A namespace containing methods used to animate UI elements.

Included in: dx.phonejs.js, dx.webappjs.js, dx.chartjs.js, dx.all.js

registerComponent(name, class)

Registers a new component in the DevExpress.ui namespace, and a jQuery plugin and Knockout binding for the required component.

Parameters:
name: String
The name for the component to register.
class: Class
A DevExpress.Class inheritor implementing the component's functionality.

Use the following code to register a new component within the DevExpress.ui namespace.

JavaScript
DevExpress.registerComponent(
    "myComponent",
    DevExpress.Component.inherit({
        //Implement your component here
    });
});

rtlEnabled

Specifies whether or not the entire application/site supports right-to-left representation.

Included in: dx.phonejs.js, dx.webappjs.js, dx.chartjs.js, dx.all.js
Type: Boolean
Default Value: false

The most common scenario is to switch the entire application/site to a right-to-left representation. In this instance, use the DevExpress.rtlEnabled field. When this option is set to true, applications built using the DevExtreme framework and sites based on DevExtreme widgets will have a right-to-left reading order, mirroring of UI elements and reversed transition animation. If you need to switch the display of each DevExtreme component used within the application/site to a right-to-left representation, use a specifically designed configuration option - rtlEnabled.

ui

A namespace that exposes UI widget objects as well as methods specifying information on the current device.

Included in: dx.phonejs.js, dx.webappjs.js, dx.chartjs.js, dx.all.js

utils

A namespace that exposes utility methods that can be helpful when working with the DevExtreme framework and UI widgets.

Included in: dx.phonejs.js, dx.webappjs.js, dx.chartjs.js, dx.all.js