frontAnswerer/lib/model/widget/banner.ts

29 lines
928 B
TypeScript
Raw Normal View History

2024-05-13 17:36:27 +00:00
export interface BannerWidgetComponentProps {
quizId: string;
position: "topleft" | "topright" | "bottomleft" | "bottomright";
onWidgetClose?: () => void;
2024-05-27 09:51:27 +00:00
dialogDimensions?: { width: string; height: string; };
2024-05-13 17:36:27 +00:00
appealText?: string;
quizHeaderText?: string;
buttonTextColor?: string;
buttonBackgroundColor?: string;
2024-05-21 12:24:19 +00:00
/**
* Показывать виджет через X секунд
*/
autoShowWidgetTime?: number;
2024-05-13 17:36:27 +00:00
/**
2024-05-25 12:58:27 +00:00
* Открыть квиз через X секунд, 0 - сразу, null - не открывать
2024-05-13 17:36:27 +00:00
*/
autoShowQuizTime?: number | null;
openOnLeaveAttempt?: boolean;
buttonFlash?: boolean;
hideOnMobile?: boolean;
withShadow?: boolean;
rounded?: boolean;
bannerFullWidth?: boolean;
pulsation?: boolean;
2024-05-27 14:24:04 +00:00
fullScreen?: boolean;
2024-05-13 17:36:27 +00:00
}
export type BannerWidgetParams = Omit<BannerWidgetComponentProps, "onWidgetClose">;