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.

36 lines (35 loc) 1.32 kB
import { Base, SurveyModel, Action } from "survey-core"; import { PropertyGridModel } from "./index"; import { SurveyCreatorModel } from "../creator-base"; import { SearchManagerPropertyGrid } from "./search-manager"; import { MenuButton } from "../utils/actions"; export declare class PropertyGridViewModel extends Base { private propertyGridModel; private creator; nextSelectionAction: Action; prevSelectionAction: Action; objectSelectionAction: MenuButton; searchManager: SearchManagerPropertyGrid; onNewSurveyCreatedCallback: (survey: SurveyModel) => void; private selectorPopupModel; hasPrev: boolean; hasNext: boolean; selectedElementName: string; searchEnabled: boolean; showPlaceholder: boolean; constructor(propertyGridModel: PropertyGridModel, creator: SurveyCreatorModel); get survey(): SurveyModel; set survey(val: SurveyModel); setObject(obj: any): void; get rootCss(): string; protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void; private get selectionController(); private onSurveyObjChanged; private onNewSurveyCreated; private updateTitle; private getTitle; private getSelectedObj; private initActions; private createObjectSwitcherAction; dispose(): void; }