Application object
Previously we have seen how to initialize the mobile application and set the transition configuration option. Transition is just one example from many global configurations that we can perform while instantiating a Kendo UI Mobile application. Let's explore some of the functionalities we can achieve using the Application object.
The Initial view
Using the initial configuration option, we can set the initial view to be displayed after the app is initialized:
new kendo.mobile.Application($(document.body), { initial: "intialViewID" });
Loading text
Using the loading configuration we can set the text shown when the loading animation is displayed. If this value is set to false
, loading animation will not be displayed. The text needs to be wrapped in <h1
> </h1
> tags:
new kendo.mobile.Application($(document.body), { loading: "<h1>Loading...</h1>" });
Forcing platform
As we know, Kendo renders platform-specific UI. However, it provides...