Tooba Atif
Posts: 0
Joined: Fri Apr 04, 2014 3:07 am

Multiple Colors in Label Component

Hi Yurii,

See the picture below. I hope it clears what I am asking :) Image

I want the same label component to show different font colors for the text after ":" like red color for "Inprogress" (after black color text "Status:") but if status is "Closed" then it should appear black.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Multiple Colors in Label Component

Hi Tooba,

You would need different tags for different colours. You could use HTML component instead of Label. Paste the following layout in it:precodeStatus:<label class="status">Inprogress</label>/code/pre
To change colour there use the following code:preApperyio("htmlName")&#46;find("&#46;status")&#46;css("color":"black");/preWhere htmlName is a name of HTML component.

Return to “Issues”