office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
22 lines (21 loc) • 758 B
TypeScript
/// <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 _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);
}