Danyal
Danyal

Reputation: 370

themes of kendoui mobile & angular with cordova platform

how to change the theme of kendoui mobile with angularjs to use ios theme for Android.

Is there a way ? thanks in advance

Upvotes: 0

Views: 258

Answers (2)

Danyal
Danyal

Reputation: 370

I found this solution :

This is the way for kendoui mobile with angularjs .

you can write just platform="'ios7'" as attribute

<body kendo-mobile-application platform="'ios7'" ng-app="app" >

so this is what I am need, thanks.

Upvotes: 1

Robin Giltner
Robin Giltner

Reputation: 3055

You can force the platform when you declare the Application.

var app = new kendo.mobile.Application($(document.body), { platform: 'ios7' });

Here is the documentation for forcing a platform http://docs.telerik.com/kendo-ui/api/javascript/mobile/application#configuration-platform

-- Edit, forgot about the kendo-mobile-application directives. If you are using these, you need to specify k-options on the element where you declare the kendo-mobile-application, to an object which has the kendo Application options specified.

<div kendo-mobile-application ng-app="myApp" ng-controller="mainController" k-options="appOptions" ...>

And in your controller

$scope.appOptions = { platform: 'ios7' };

Documentation http://demos.telerik.com/kendo-ui/mobile-layout/angular

Upvotes: 1

Related Questions