setDisabled(isDisabled)

Sets the value of the SelectOption object's isDisabled attribute.

Signature

public Void setDisabled(Boolean isDisabled)

Parameters

isDisabled
Type: Boolean

Return Value

Type: Void

Usage

If isDisabled is set to true, the user can view the option, but cannot select it. If isDisabled is set to false, the user can both view and select the option.