Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    coloring a label without setstylename

    Hey guys,

    Is there any way setting properties to a Label like color, tooltip/alt and so on? Without using setStyleName and creating a css class?

    Just looking for something like setColor("red");
    There is a method setProperty but sadly it seems to only work for width, height.

    We are running version 4.0

    #2
    Hi JCarlson

    try setContents() with setContents("<span style=\"color: red;\">yourText</span>").

    Best regards,
    Blama

    Comment


      #3
      Hey Blama,

      Thx for your response, this one works for my case :)

      Cheers,
      JCarlson

      Comment

      Working...
      X