Inactivate the Button and set the inactive look to it.
button.setInactive(true)
Demo
file: timeReportSample.html
Run
the example
See the source code
Button.setInactive(flag)
flag
Boolean:
true: Inactivate the Button
true: false Activate the button
no return value
This method allow to inactivate a button.
The look given to the button is the one defined with the setXXXInactive methods of ButtonStyle. See Button: onEvent methods.