selected([selected])

Class: ToggleButton.

Description:

Sets/Gets selection state of the toggle button.

Parameters:

Name Type Description

[selected]

boolean

true to select, false to deselect the toggle button.

Returns:

If called without arguments, returns boolean value, otherwise returns this ToggleButton instance.

Type: boolean | ToggleButton