Function: useFocusElement()
useFocusElement(
target):boolean
Defined in: src/infrastructure/viewport/viewport.service.ts:247
Focuses an element.
Parameters
target
string | HTMLElement
An HTMLElement or a CSS selector string.
Returns
boolean
true if the element was found and focused.
Example
useFocusElement("#search-input");