UNPKG

editorjs-form-builder

Version:
36 lines (35 loc) 929 B
import { API, BlockTool, BlockToolData, ToolConfig } from "@editorjs/editorjs"; interface WebsiteQuestionData extends BlockToolData { label: string; help: string; placeholder: string; required: boolean; } export default class WebsiteQuestion implements BlockTool { settings: { name: string; icon: string; }[]; api: API; data: any; wrapper: undefined | HTMLElement; static get toolbox(): { icon: string; title?: string; }; constructor({ data, }: { api: API; config?: ToolConfig; data?: WebsiteQuestionData; }); save(block: HTMLDivElement): any; renderSettings(): HTMLElement; /** * @private * Click on the Settings Button * @param {string} tune — tune name from this.settings */ _toggleTune(tune: any): void; render(): HTMLElement; } export {};