Announcement

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

    Change Font/Color of Checkbox

    Hi,

    I'd like to know if it is possible to change the color and/or font properties of a checkbox. Obviously it is not possible to do this directly via checkbox.setFontColor() since there is no such method ;-)

    Is there another way to do this? Maybe by using CSS stuff? Maybe even without having another CSS file? I know there is a method like "setStyleName()" for labels, but there is nothing like it for checkboxes.

    Any help is appreciated!
    Michael

    #2
    See the various *style properties on FormItem and DynamicForm. They name CSS styles which control appearance.

    Comment


      #3
      Originally posted by Isomorphic
      See the various *style properties on FormItem and DynamicForm. They name CSS styles which control appearance.
      Ok, thanks. The setTextBoxStyle() method can be used for my purpose.

      But doing it this way requires that the color and/or font definition is stored in a CSS file. It is not possible to eg let the user define a color on the fly, right?

      Comment

      Working...
      X