@laserware/dominator
    Preparing search index...

    Type Alias FocusOptions<E>

    Additional options for setting focus to an element.

    type FocusOptions<E extends Element> = {
        delay?: number;
        parent?: Target;
        preventScroll?: boolean;
        onDone(element: E): void;
    }

    Type Parameters

    Index

    Properties

    delay?: number

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

    parent?: Target

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

    preventScroll?: boolean

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

    Methods