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.

43 lines (42 loc) 1.49 kB
import { EventBase } from "survey-core"; import { ICreatorPlugin, ICreatorPresetData, SurveyCreatorModel, saveToFileHandler } from "survey-creator-core"; import { CreatorPresetEditorModel } from "./presets-editor"; /** * A class that instantiates the Preset Editor and provides APIs to manage its elements. */ export declare class UIPresetEditor implements ICreatorPlugin { private creator; model: CreatorPresetEditorModel; static iconName: string; private activeTab; private currentPresetIndex; private currentValue; private designerPlugin; private toolboxCompact; private defaultJson; private presetsList; private showPresets; private hidePresets; private confirmReset; constructor(creator: SurveyCreatorModel); /** * An event raised when a user clicks **Save & Exit** in the Preset Editor. * * Parameters: * * - `sender`: `UIPresetEditor`\ * A `UIPresetEditor` instance that raised the event. * - `options.preset`: `ICreatorPresetData`\ * A preset configuration that was applied to the Survey Creator. */ onPresetSaved: EventBase<UIPresetEditor, { preset: ICreatorPresetData; }>; protected saveHandler(): void; saveToFileHandler: typeof saveToFileHandler; private preventTabSwitch; activate(): void; deactivate(): boolean; onLocaleChanged(): void; getLicenseText(hasCreatorLicense: boolean, creatorLicenseDateString: string): string; }