Announcement

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

    Changing background Color of ButtonItem Dynamically

    Hi,

    I am using <smartgwt.version>12.1-p20210219</smartgwt.version>

    I am usig ButtonItem.I want being added to Dynamic form , i want to chnage the background color of button item.

    How can i change background color of buttonItem after being added to form?

    #2
    Is there something wrong with getButton().setBaseStyle()?

    Comment


      #3
      I am having ButtonItem in view file.
      and its added into dynamic form in view file only.
      Based on some condition thats present in presenter file, i want to change baseStyle.

      So setBaseStyle doesnt work in presenter file.

      Comment


        #4
        SmartGWT does not have a view/presenter split like you describe, so it looks like you have crammed in some third-party architecture instead of following our best practices. That can create a lot of unnecessary problems, like this one.

        Anyway, this is now your problem to solve: SmartGWT provides APIs that do what you want.

        Comment

        Working...
        X