UNPKG

survey-core

Version:

A framework-independent core of the SurveyJS Form Library that works with rendering packages. Use it to integrate dynamic, interactive JSON-based forms and surveys into your app, collect user responses, and send them to your own database.

48 lines (47 loc) 1.3 kB
import { ISurvey } from "./base-interfaces"; import { Base, EventBase } from "./base"; import { PageModel } from "./page"; import { SurveyModel } from "./survey"; export interface ISurveyTimerText { timerInfoText: string; timerInfo: { spent: number; limit?: number; }; timerClock: { majorText: string; minorText?: string; }; getCss(): any; isTimerPanelShowingOnBottom: boolean; isTimerPanelShowingOnTop: boolean; onCurrentPageChanged: EventBase<SurveyModel>; } export declare class SurveyTimerModel extends Base { onTimerTick: (page: PageModel) => void; private surveyValue; constructor(survey: ISurvey); text: string; progress: number; clockMajorText: string; clockMinorText: string; spent: number; get survey(): ISurveyTimerText; onCreating(): void; private timerFunc; start(): void; stop(): void; get isRunning(): boolean; private setIsRunning; private update; private doTimer; private updateProgress; private updateText; get showProgress(): boolean; get showTimerAsClock(): boolean; get rootCss(): string; getProgressCss(): string; get textContainerCss(): string; get minorTextCss(): string; get majorTextCss(): string; }