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

Multiple CSS styles?

1 Answer 37 Views
NativeScript Insiders
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ian
Top achievements
Rank 1
Ian asked on 23 Jan 2015, 04:52 PM
Hi,
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex
Telerik team
answered on 28 Jan 2015, 07:49 AM
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.

Regards,
Alex
Telerik
 

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.

 
Tags
NativeScript Insiders
Asked by
Ian
Top achievements
Rank 1
Answers by
Alex
Telerik team
Share this question
or