UNPKG

survey-creator-core

Version:

A framework-independent core package of the SurveyJS Survey Creator component. With Survey Creator, you can visually design complex, interactive JSON forms and surveys in a drag-and-drop interface.

58 lines (57 loc) 2.1 kB
import { Base, Action, AnimationBoolean } from "survey-core"; import { SurveyCreatorModel } from "../../creator-base"; import { SidebarPageModel } from "./side-bar-page-model"; import { SidebarHeaderModel } from "./side-bar-header-model"; export declare class SidebarModel extends Base { private creator; header: SidebarHeaderModel; private _expandAction; private _collapseAction; private _activePage; private onSidebarVisibilityChanged; private resizeManager; onExpandCallback: () => void; pages: Array<SidebarPageModel>; _visible: boolean; renderedIsVisible: boolean; collapsedManually: boolean; expandedManually: boolean; hasVisiblePages: boolean; flyoutMode: boolean; narrowMode: boolean; hideSideBarVisibilityControlActions: boolean; sideAreaComponentName: string; sideAreaComponentData: any; private rootElement; get rootCss(): string; get renderRoot(): boolean; get renderContainer(): boolean; private getAnimationOptions; private allowFlyoutMode; private afterExpand; executeOnExpand(callback: () => void): void; visibilityAnimation: AnimationBoolean; set visible(val: boolean); get visible(): boolean; get flyoutPanelMode(): boolean; get closeText(): string; getPageById(id: string): SidebarPageModel; locStrsChanged(): void; private createActions; private getCurrentHandles; private sidebarLocationChangedHandler; constructor(creator: SurveyCreatorModel); get activePage(): string; set activePage(val: string); getActivePage(): SidebarPageModel; setActivePage(newPage: SidebarPageModel): void; getExpandAction(): Action; collapseSidebar(): void; expandSidebar(): void; addPage(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SidebarPageModel; updateHasVisiblePages(): void; dispose(): void; initResizeManager(container: HTMLDivElement): void; resetResizeManager(): void; get toolbar(): import("survey-core").AdaptiveActionContainer<Action>; }