Skip to content

$fn.setFocus(param)

This is a built-in function added in v3.3.0.
Gives focus to a specified component within the UI.

Arguments

NameTypeDescription
paramobjectID information of the component to focus on

Details of param:

PropertyTypeDescription
idstringThe ID of the component to focus on

Return Value

None

Sample

$fn.setFocus({ id: 'text_area'})