@idscan/onboarding
Version:
Wrapper of the IDVC library for DIVE Online.
27 lines (26 loc) • 832 B
TypeScript
export default class Modal {
protected mountEl: HTMLElement;
modalContainer: HTMLElement;
protected background: HTMLElement;
protected container: HTMLElement;
protected headerContainer: HTMLElement;
protected headerText: HTMLElement;
protected body: HTMLElement;
protected footer: HTMLElement;
protected spinner: HTMLElement;
protected closeBtn: HTMLElement;
protected _closable: boolean;
constructor(mountEl: HTMLElement | string);
init(html?: string): void;
set closable(val: boolean);
set header(val: string);
set showBackground(val: boolean);
set content(val: string);
toggleCloseBtn(): void;
closeHandler(): void;
hideSpinner(): void;
hide(): void;
show(): void;
showSpinner(val: boolean): void;
prepareBackgroundStyles(): void;
}