UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

23 lines (22 loc) 777 B
/// <reference types="react" /> import { BaseComponent } from '../../Utilities'; import { IRatingProps } from './Rating.types'; export interface IRatingState { rating: number | null | undefined; } export declare class RatingBase extends BaseComponent<IRatingProps, IRatingState> { static defaultProps: IRatingProps; private _id; private _min; private _labelId; private _classNames; constructor(props: IRatingProps); componentWillReceiveProps(nextProps: IRatingProps): void; render(): JSX.Element; private _getStarId(index); private _onFocus(value, ev); private _getLabel(rating); private _getInitialValue(props); private _getClampedRating(rating); private _getFillingPercentage(starPosition); }