Skip to content

$fn.setFocus(param)

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

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'})