@paydock/client-sdk
Version:
Paydock client sdk
43 lines • 1.13 kB
TypeScript
import { EventEmitter } from '../helper/event-emitter';
/**
*
* @type {object}
* @param {string} CLOSE=close
* @param {string} FOCUS=focus
*/
export declare const TRIGGER: {
CLOSE: string;
FOCUS: string;
};
/**
* Class Background create overlay for checkout
*
* @example
* var overlay = new Background();
*/
declare class Background {
protected description: string;
protected title: string;
protected overlay: HTMLElement;
protected style: HTMLStyleElement;
protected eventEmitter: EventEmitter;
protected showControl: boolean;
protected showLoader: boolean;
constructor();
initControl(): void;
initLoader(): void;
private eventHandler;
clear(): void;
private createLoader;
protected createTemplate(): void;
private createStyles;
setBackdropDescription(text: string): void;
setBackdropTitle(text: string): void;
onTrigger(triggerName: string, cb: () => void): void;
isInit(): boolean;
hideContinueControl(): void;
turnOffControl(): void;
turnOffLoader(): void;
}
export { Background };
//# sourceMappingURL=background.d.ts.map