katoikia-app/web-ui/web-react/node_modules/primereact/rating/rating.d.ts

33 lines
793 B
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as React from 'react';
import TooltipOptions from '../tooltip/tooltipoptions';
interface RatingChangeTargetOptions {
name: string;
id: string;
value: number | undefined | null;
}
interface RatingChangeParams {
originalEvent: React.SyntheticEvent;
value: number | undefined | null;
stopPropagation(): void;
preventDefault(): void;
target: RatingChangeTargetOptions;
}
export interface RatingProps {
id?: string;
value?: number;
disabled?: boolean;
readOnly?: boolean;
stars?: number;
cancel?: boolean;
style?: object;
className?: string;
tooltip?: string;
tooltipOptions?: TooltipOptions;
onChange?(e: RatingChangeParams): void;
}
export declare class Rating extends React.Component<RatingProps, any> { }