@sheerid/jslib-nightly
Version:
SheerID JavaScript Library
30 lines (29 loc) • 1.03 kB
TypeScript
import { IframeUserConfiguration, Options, ViewModel } from '../types/types';
import { default as Iframe } from './iframe';
declare class Modal {
verificationUrl: string;
redirectOnMobile: boolean;
overlay: HTMLElement;
wrapper: HTMLElement;
iframeInstance: Iframe;
on: typeof this.iframeInstance.on;
once: typeof this.iframeInstance.once;
isMobileDevice: boolean;
closeButtonText: string;
closeButton: HTMLButtonElement;
stopPropagation: boolean;
constructor(url: string, userConfig: IframeUserConfiguration);
createCloseBtn(): HTMLButtonElement;
closeModal(): void;
static createOverlay(): HTMLElement;
createWrapper(): HTMLElement;
popStateEventHandler: () => void;
addPopStateListener(): void;
addFocusListener(): void;
isInLightboxPostMessage(inLightbox: string): void;
displayModal(): void;
init(): void;
setViewModel(viewModel: Partial<ViewModel> | ViewModel): void;
setOptions(options: Options): void;
}
export default Modal;