CSS depend platform

4 posts, 1 answers
  1. Tamir
    Tamir avatar
    10 posts
    Member since:
    Dec 2013

    Posted 27 Jan 2014 Link to this post

    Hello,
    Using Icenium window client.
    I want to use different css file depend on the platform. 1 css for android and different for IOS.  
    I know i can detect platform with cordova, but how to set the right css file.
    Or there is a different way in config file?
    Thanks in advance 
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Jan 2014 Link to this post

    Hello Tamir,

    You are correct, you can achieve this by using device.platform to identify the platform and apply different css rules/file or utilize one of the Telerik AppBuilder features, called Platform-Specific Files.

    Regards,
    Steve
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Tamir
    Tamir avatar
    10 posts
    Member since:
    Dec 2013

    Posted 27 Jan 2014 Link to this post

    Thank you Steve,
    So just to be sure, i create platform specific files and identification of the platform is on you (Icenium) ? :-)
  4. Answer
    Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Jan 2014 Link to this post

    Hi Tamir,

    Correct, the "identification" unlike the device.platform check in Cordova, is made on build level i.e. when you push build for Android, we would only use the name.android.extension file for the build and the name.ios.extension would not be included in the app at all.

    Regards,
    Steve
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top