Announcement

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

    DateItem font color

    I need to change the font color of a date item with useTextField is set to true. What is the property to set for this?

    #2
    I can set it fine statically but I want to change it dynamically

    i have this code:

    Code:
    dateField.setProperty("textFieldProperties",{textBoxStyle:'CwRowErr'});

    Comment


      #3
      There's no supported API for this, but since DateItem is a ContainerItem, there is a dateItem.items Array, and the text field is the first entry (a TextItem instance). You could change the textBoxStyle on it directly, then redraw() the item.

      Comment


        #4
        ok thanks. that works.

        Comment

        Working...
        X