HtmlApplication

An object used to manage layouts and views, as well as control the application life cycle.

Type: Object

The HtmlApplication object connects markup elements, scripts and styles to a single application, and provides methods for controlling the application life cycle. To create an HtmlApplication object, call the HtmlApplication constructor within the document.ready event handler or the jQuery "$()" function.

JavaScript
$(function () {
    app = new DevExpress.framework.html.HtmlApplication();
});

To configure the HtmlApplication object, pass a configuration object as the constructor's parameter. Specify the required options within the configuration object. For instance, specify a default application layout. Using the application object, register a routing rule for the application and navigate to a starting view.

JavaScript
$(function() {
    app = new DevExpress.framework.html.HtmlApplication({
        defaultLayout: 'default'
    });
    app.router.register(":view", { view: "index"});
    app.navigate();
});

Configuration

This section describes configuration options used to create an HtmlApplication object.

Methods

This section describes the methods used to manipulate the application flow.

Events

This section describes events fired by the HtmlApplication object.