FocusOptions: {
    delay?: number;
    parent?: Target;
    preventScroll?: boolean;
    onDone(element: E): void;
}

Additional options for setting focus to an element.

Type Parameters

Type declaration

  • Optionaldelay?: number

    Delay (in milliseconds) to wait until attempting to set focus.

  • Optionalparent?: Target

    Parent element (if target is a css!CssSelector).

  • OptionalpreventScroll?: boolean

    If true, don't scroll the focused element into view. See the MDN documentation for preventScroll for additional details.

  • onDone?:function