survey-react-ui
Version:
survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.
23 lines (22 loc) • 762 B
TypeScript
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;
}