Button: setInactive

Inactivate the Button and set the inactive look to it.

Example

button.setInactive(true)

Demo

file: timeReportSample.html

Run the example
See the source code

Syntax

Button.setInactive(flag)

Parameters

flag

Boolean:

true: Inactivate the Button

true: false Activate the button

Return value

no return value

Usage

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.