We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set Common theme for a sample so that the UI looks the same in all the platforms?

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.


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.


Article ID: Published Date: Last Revised Date: Platform: Control:
4964 05/23/2015 05/23/2015 JavaScript General
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Please sign in to access our KB

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon