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.

23 lines (22 loc) 762 B
import * as React from "react"; import { Base, QuestionRatingModel, RenderedRatingItem } from "survey-core"; import { SurveyElementBase } from "../../reactquestion_element"; export interface IRatingItemProps { question: QuestionRatingModel; item: RenderedRatingItem; index: any; handleOnClick: any; isDisplayMode: boolean; } export declare class RatingItemBase extends SurveyElementBase<IRatingItemProps, any> { constructor(props: any); get question(): QuestionRatingModel; get item(): RenderedRatingItem; get index(): any; getStateElement(): Base; handleOnMouseDown(event: any): void; } export declare class RatingItem extends RatingItemBase { render(): React.JSX.Element | null; componentDidMount(): void; }