feedlytic-widget
Version:
Lightweight JavaScript widget for capturing user feedback and exit-intent surveys
20 lines (18 loc) • 561 B
TypeScript
import { FeedlyticConfig } from './types';
export declare class FloatingButton {
private element;
private config;
private onFeedbackClick;
private onContextualClick;
private isContextualMode;
constructor(config: FeedlyticConfig);
create(onFeedbackClick: () => void, onContextualClick?: () => void): HTMLElement;
private updateElement;
private addStyles;
private adjustColor;
private attachEventListeners;
show(): void;
hide(): void;
destroy(): void;
updateContextualMode(isEnabled: boolean): void;
}