enabled([enabled])

Class: Button. Method inherited from UIComponent.

Description:

Enables or disables the component.

Parameters:

Name Type Description

[enabled]

boolean

true to enable, false to disable the component. Omit to get current value.

Returns:

If called with an argument, then this component instance is returned, otherwise boolean value is returned.

Type: boolean | this