This is a migrated thread and some comments may be shown as answers.

Custom TabStrip Icons Don't Show On iPhone

1 Answer 66 Views
iOS Devices
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tom
Top achievements
Rank 1
Tom asked on 25 Feb 2015, 10:56 PM
I am new to AppBuilder - and can't get custom icons to show on tabstrip on the iPhons - they show in Android.

Here is my code:

index.html

        <div data-role="footer">
            <div data-role="tabstrip">
                <a href="views/home.html" data-icon="customHome">Home</a>   
                <a href="views/sessionsManager.html" data-icon="customSession">Sessions</a>
                <a href="views/profile.html" data-icon="customProfile">Profile</a>
                <a href="views/settings.html" data-icon="customSettings">Settings</a>
            </div>
        </div>

main.css

    .km-root .km-pane .km-view .km-customHome
    {
        background-image: url("../img/icons/home.png");
        background-repeat: no-repeat;
        background-position: center center;
        
    }
    .km-root .km-pane .km-view .km-customSession
    {
        background-image: url("../img/icons/sessions.png");
        background-repeat: no-repeat;
        background-position: center center;        
    }
    .km-root .km-pane .km-view .km-customProfile
    {
        background-image: url("../img/icons/profile.png");
        background-repeat: no-repeat;
        background-position: center center;        
    }
    .km-root .km-pane .km-view .km-customSettings
    {
        background-image: url("../img/icons/settings.png");
        background-repeat: no-repeat;
        background-position: center center;        
    }

1 Answer, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 02 Mar 2015, 03:50 PM
Hi Tom,

you will need one additional CSS property to be set - -webkit-background-clip. Please check this dojo.

Regards,
Petyo
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
iOS Devices
Asked by
Tom
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Share this question
or