init

Fires after a mobile Layout and its child widgets is initialized.

Event Data

e.layout jQuery

The mobile layout instance

    <div id="foo" data-role="view" data-layout="default">
      Foo view
    </div>


    <div data-role="layout" data-id="default"  data-init="onInit">
      <header data-role="header">
        <div data-role="navbar">
          <span data-role="view-title"></span>
        </div>
      </header>
    </div>

    <script>
    var app = new kendo.mobile.Application();

    function onInit(e) {
    /* The result can be observed in the DevTools(F12) console of the browser. */
        console.log("init");
    }
    </script>
In this article