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.

24 lines (23 loc) 936 B
import { Action } from "./actions/action"; import { ListModel } from "./list"; import { PanelModelBase } from "./panel"; import { PopupModel } from "./popup"; import { SurveyModel } from "./survey"; export declare function tryFocusPage(survey: SurveyModel, panel: PanelModelBase): boolean; export declare function createTOCListModel(survey: SurveyModel, onAction?: () => void): ListModel<Action>; export declare function getTocRootCss(survey: SurveyModel, isMobile?: boolean): string; export declare class TOCModel { survey: SurveyModel; static RootStyle: string; static StickyPosition: boolean; constructor(survey: SurveyModel); private initStickyTOCSubscriptions; updateStickyTOCSize(rootElement: HTMLElement): void; get isMobile(): boolean; get containerCss(): string; listModel: ListModel<Action>; popupModel: PopupModel; icon: string; togglePopup: () => void; dispose(): void; }