By default, Mobile JS control’s UI changes with respect to the platform, such as IOS7, Android, and Windows and gets rendered. To render the controls irrespective of its platform, you can set the specific UI theme as an attribute in the head tag as mentioned in the following code example. In the following example, iOS theme gets rendered in all devices. HTML<!DOCTYPE html> <html> <head data-ej-ios7="true"> <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1.0, user-scalable=no" /> <meta charset="UTF-8"> <link href="themes/ej.mobile.all.min.css" rel="stylesheet" type="text/css" /> <title>Sample Page title> <script src="scripts/jquery-2.0.0.min.js" type="text/javascript">script> <script src="scripts/jquery.validate.min.js" type="text/javascript">script> <script src="scripts/jsrender.min.js" type="text/javascript">script> <script src="scripts/ej.mobile.all.min.js" type="text/javascript">script> </head> The attributes for different render mode are listed here. A Theme, or render mode, called “Flat” provides generic appearance in all platforms instead of its native appearance. 1. IOS7 – data-ej-ios7 =”true” 2. Android – data-ej-android = “true” 3. Windows – data-ej-windows = “true” 4. Flat – data-ej-flat = “true” (Generic theme) You can make the application to be rendered with a common theme in all devices using this method.
|
This page will automatically be redirected to the sign-in page in 10 seconds.