UNPKG

survey-react-ui

Version:

A free MIT-licensed React UI component that renders dynamic, interactive JSON-based forms and surveys. You can use it to collect responses from users and send them to your own database.

34 lines (33 loc) 1.39 kB
import * as React from "react"; import { ReactSurveyElement, SurveyQuestionElementBase } from "./reactquestion_element"; import { QuestionMatrixModel, Base } from "survey-core"; export declare class SurveyQuestionMatrix extends SurveyQuestionElementBase { constructor(props: any); protected get question(): QuestionMatrixModel; componentDidMount(): void; componentWillUnmount(): void; protected renderElement(): React.JSX.Element; } export declare class SurveyQuestionMatrixRow extends ReactSurveyElement { constructor(props: any); protected getStateElement(): Base | null; private get question(); private get row(); protected wrapCell(cell: any, element: React.JSX.Element, reason: string): React.JSX.Element; protected canRender(): boolean; protected renderElement(): React.JSX.Element; generateTds(): Array<React.JSX.Element>; cellClick(row: any, column: any): void; } export declare class SurveyQuestionMatrixCell extends ReactSurveyElement { constructor(props: any); handleOnChange(event: any): void; handleOnMouseDown(event: any): void; private get question(); private get row(); private get column(); private get columnIndex(); protected canRender(): boolean; protected renderElement(): React.JSX.Element; protected renderInput(inputId: string, isChecked: boolean): React.JSX.Element; }