Announcement

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

    how to change style textitem?

    hi

    since my searches only result in guessing how to style some special cases
    i just wanted to know how can i change the style of a simple textitem
    i have a dynamicform which is used for new registrations
    in case of a validation error i wanted to set the background color to red

    maybe someone can provide real code
    using this.city.setCellStyle("textItemError"); and this.city.setAttribute("STYLE", "background-color:#000000;");
    didnt work with
    Code:
    .textItemError textItem {
    	background-color: #77000
    }
    so how does it have to be done correctly?

    smartGWT 2.2
    firefox 3.6.8


    thx

    #2
    for background, you have to set textBoxStyle

    Comment


      #3
      it worked
      many thanks

      this.city.setTextBoxStyle("myTextItemError");
      with the style in the projects css
      Code:
      .myTextItemError {
      	background-color: #F7C69E;
      }

      Comment

      Working...
      X