The Kendo mobile View widget represents a screen in the kendo mobile Application. The Application automatically instantiates a mobile View for each element with a role data attribute set to view.

Hello World mobile View

<div data-role="view">Hello world!</div>

Headers and Footers

By default, the mobile View contents stretch to fit the application element. The mobile View can also have a header and a footer. In order to mark header and footer elements, add elements with attribute data-role="header" and data-role="footer".

Mobile View with Header and Footer

<div data-role="view">
  <div data-role="header">Header</div>
  Hello world!
  <div data-role="footer">Footer</div>
</div>
Important:

Because of the OS UI design conventions, the header and the footer switch positions when an Android device is detected. Usually the footer hosts a MobileTabstrip widget, which is located at the bottom of the screen on iOS, and at the top of the screen in Android applications.

View DOM elements

Each mobile View instance exposes the following fields: