UNPKG

@esri/calcite-components

Version:

Web Components for Esri's Calcite Design System.

19 lines (18 loc) 732 B
/** * Helper to get the first focusable element. * * @param element - The html element containing focusable elements. * @param includeContainer - When true, the container element will be considered as well. * @returns the first focusable element. * @internal */ export function getFirstFocusable(element: HTMLElement, includeContainer?: boolean): HTMLElement; /** * Helper to focus the first focusable element. * * @param element - The html element containing focusable elements. * @param includeContainer - When true, the container element will be considered as well. * @param options * @internal */ export function focusFirstFocusable(element: HTMLElement, includeContainer?: boolean, options?: FocusOptions): void;