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.
27 lines (26 loc) • 1.13 kB
TypeScript
import { SurveyCreatorModel } from "../../creator-base";
import { ICreatorPlugin } from "../../creator-settings";
import { JsonEditorBaseModel, TabJsonEditorBasePlugin } from "./json-editor-plugin";
import "./json-editor-textarea.scss";
export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
protected _text: string;
private _errors;
ariaLabel: string;
textElement: HTMLTextAreaElement;
canShowErrors: boolean;
constructor(creator: SurveyCreatorModel);
checkKey(data: any, e: any): boolean;
protected getText(): string;
protected setText(value: string): void;
protected gotoError(at: number, row: number, column: number): void;
get errorButtonText(): string;
toggleErrors(): void;
get userFriendlyErrors(): any[];
get errors(): any[];
protected onTextChanged(): void;
protected setErrors(errors: any[]): void;
}
export declare class TabJsonEditorTextareaPlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
constructor(creator: SurveyCreatorModel);
protected createModel(creator: SurveyCreatorModel): JsonEditorBaseModel;
}