Interface UnorderedFocusOptions

Options of unordered focus movement methods from FocusControls.

interface UnorderedFocusOptions {
    approveFocusCandidate?: ((element: FocusableElement) => boolean);
    isScrollPrevented?: boolean;
}

Hierarchy (view full)

Properties

approveFocusCandidate?: ((element: FocusableElement) => boolean)

Returns true if an element is allowed to receive focus. By default, all candidates are approved.

isScrollPrevented?: boolean

If true no scrolling will occur after element receives focus, otherwise the browser scrolls the document to bring the newly-focused element into view.

false