Jump to content

How to change text color ?


bali33
 Share

Recommended Posts

Hi guys,

 

I'd like to change a textfield color - so I tried :

 

setStyle({fill:myColor});

 

The color changed as expected but my font and my font size changed too - I suspect it is because they are not specified in the setStyle argument. Is there a way to only change a text color without having to re-specify all other style properties ?

 

Thank you

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...