Page 2 of 2

Multiple Colors in Label Component

Posted: Thu Jun 26, 2014 7:11 am
by Tooba Atif

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.


Multiple Colors in Label Component

Posted: Thu Jun 26, 2014 1:41 pm
by Kateryna Grynko

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.