10 Replies Latest reply on Aug 26, 2011 6:27 AM by Kanchan Ladwani

    Changing the color of a Button programatically

    Scott R. Hamilton Level 1

      I would like to change the background (or fillColor?) of a button programmatically. The methods to accomplish this that are shown in the documentation do not seem to work. For example to following code to change the color of the Button with the id buDel does not produce an error but it also does not change the color of the button:


      buDel.setStyle("fillColor", "#e5507a");


      I have also tried this using the backgroundColor attribute in the setStyle method.