Common 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.

Type: Object

registerComponent(name, class)

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

Parameters:
name: String
The name of the component to register.
class: Class
An object implementing the component's functionality.

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

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

ui

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