UNPKG

feedlet-widget

Version:

Lightweight JavaScript widget for capturing user feedback and exit-intent surveys

20 lines (18 loc) 557 B
import { FeedLetConfig } from './types'; export declare class FloatingButton { private element; private config; private onFeedbackClick; private onContextualClick; private isContextualMode; constructor(config: FeedLetConfig); create(onFeedbackClick: () => void, onContextualClick?: () => void): HTMLElement; private updateElement; private addStyles; private adjustColor; private attachEventListeners; show(): void; hide(): void; destroy(): void; updateContextualMode(isEnabled: boolean): void; }