• Programmatically sets focus on the specified HTML element.

    Parameters

    • element: HTMLElement

      The HTML element to receive focus.

    Returns void

    See

    MDN Documentation for HTMLElement.focus()

    Example

    // Get an input element by its ID
    const inputElement = ix.api.dom.getHtml("<ELEMENT-GUID>");

    // Set focus on the input element
    ix.api.dom.focus(inputElement);