focused([value])

Class: ToggleButton. Method inherited from UIComponent.

Description:

If value is passed, it makes component to get or loose focus, otherwise returns boolean indicating if it has focus or not.

Parameters:

Name Type Description

[value]

boolean

true to get focus, false to attempt to shift focus to next component (if it has focus), usually by switching focus to next component.

Returns:

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

Type: boolean | this