Multiple CSS styles?

2 posts, 1 answers
  1. Ian
    Ian avatar
    129 posts
    Member since:
    Jun 2009

    Posted 23 Jan 2015 Link to this post

    In HTML, you can assign multiple styles to a single DOM item such as <div class="style1 style2"></div>.

    It seems that NativeScript only allows a single style to be assigned to an item. For example, the following doesn't work:
    <Label text="{{ Message }}" cssClass="style1 style2" />

    Is this a restriction in the current version of NativeScript?

    Regards, Ian
  2. Answer
    Alex avatar
    129 posts

    Posted 28 Jan 2015 Link to this post

    Hi Ian,

    You guessed right - setting multiple CSS styles is still not supported in NativeScript. We will implement this for one of the next releases. 

    Thanks for the feedback.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top