UNPKG

r2-navigator-js

Version:

Readium 2 'navigator' for NodeJS (TypeScript)

20 lines (19 loc) 950 B
export interface IHTMLDialogElementWithPopup extends HTMLDialogElement { popDialog: PopupDialog | undefined; } export declare function isPopupDialogOpen(documant: Document): boolean; export declare function closePopupDialogs(documant: Document): void; export declare function isElementInsidePopupDialog(el: Element): boolean; export declare class PopupDialog { readonly documant: Document; readonly onDialogClosed: (el: HTMLOrSVGElement | null) => void; readonly role: string; readonly dialog: IHTMLDialogElementWithPopup; readonly doNotTrapKeyboardFocusTabIndexCycling: boolean; private readonly _onKeyUp; private readonly _onKeyDown; constructor(documant: Document, outerHTML: string, onDialogClosed: (el: HTMLOrSVGElement | null) => void, optionalCssClass?: string, doNotTrapKeyboardFocusTabIndexCycling?: boolean); show(toRefocus: Element | undefined): void; cancelRefocus(): void; hide(): void; }