GwtMaterialDesign / gwt-material

A Google Material Design wrapper for GWT
https://gwtmaterialdesign.github.io/gmd-core-demo/
Apache License 2.0
411 stars 124 forks source link

Disable MaterialButton via setDisable function #82

Closed MarcoCucchi closed 9 years ago

MarcoCucchi commented 9 years ago

Hi Guys, I'm new on GwtMaterialDesign and I'm using it for POC in my company, in my demo i use MaterialButton obj but it seems that myButton.setDisable(true) doesn't work. I've shared a sample on https://gitter.im/MarcoCucchi/code I use gwt

ty

kevzlou7979 commented 9 years ago

OK I will check this part, maybe it's better to indicate the type of button you are using

MarcoCucchi commented 9 years ago

hi @kevzlou7979, yes I used a flat type es. m:MaterialButton ui:field="btnDisable" color="orange" textColor="white" waves="red" type="flat" text="Disable me" /

kevzlou7979 commented 9 years ago

Hi , we've fix the issue please follow this : https://github.com/GwtMaterialDesign/gwt-material/commit/61ec840b9e1880b35e3a6e19be0743798ebb6c87