survey-creator-react
Version:
A white-label drag-and-drop form builder for React that lets you design complex, interactive forms and surveys without writing code. It generates JSON schemas used by the SurveyJS Form Library to render dynamic forms in your React app.
42 lines (41 loc) • 1.6 kB
TypeScript
import { SurveyCreatorModel, QuestionToolboxItem } from "survey-creator-core";
import * as React from "react";
import { ToolboxToolViewModel } from "survey-creator-core";
import { ActionContainer, Base } from "survey-core";
import { CreatorModelElement } from "../ModelElement";
export interface ISurveyCreatorToolboxItemProps {
creator: SurveyCreatorModel;
item: QuestionToolboxItem;
model: ToolboxToolViewModel;
parentModel: ActionContainer;
isCompact: boolean;
}
export interface ISurveyCreatorToolboxToolProps {
creator: SurveyCreatorModel;
item: QuestionToolboxItem;
parentModel: ActionContainer;
isCompact: boolean;
}
export declare class SurveyCreatorToolboxTool extends CreatorModelElement<ISurveyCreatorToolboxToolProps, any> {
model: ToolboxToolViewModel;
rootRef: React.RefObject<HTMLDivElement>;
constructor(props: any);
protected createModel(props: any): void;
protected getUpdatedModelProps(): string[];
get item(): QuestionToolboxItem;
get creator(): SurveyCreatorModel;
get isCompact(): boolean;
protected getStateElement(): Base;
render(): React.JSX.Element;
componentWillUnmount(): void;
componentDidMount(): void;
}
export declare class SurveyCreatorToolboxItem extends CreatorModelElement<ISurveyCreatorToolboxItemProps, any> {
constructor(props: any);
protected getUpdatedModelProps(): string[];
get item(): QuestionToolboxItem;
get creator(): SurveyCreatorModel;
get model(): ToolboxToolViewModel;
protected getStateElement(): Base;
render(): React.JSX.Element;
}