frontAnswerer/lib/model/widget/side.ts

21 lines
637 B
TypeScript
Raw Normal View History

2024-05-13 17:36:27 +00:00
export interface SideWidgetComponentProps {
quizId: string;
position: "left" | "right";
buttonBackgroundColor?: string;
buttonTextColor?: string;
dialogDimensions?: { width: string; height: string; };
fullScreen?: boolean;
buttonFlash?: boolean;
/**
2024-05-21 12:24:19 +00:00
* Показывать виджет через X секунд
2024-05-13 17:36:27 +00:00
*/
2024-05-21 12:24:19 +00:00
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;
hideOnMobile?: boolean;
}
export type SideWidgetParams = SideWidgetComponentProps;