office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
23 lines (22 loc) • 756 B
TypeScript
import { BaseComponent } from '../../Utilities';
import { IRatingProps } from './Rating.Props';
export interface IRatingState {
rating: number | null | undefined;
focusedRating: number | null;
}
export declare class Rating extends BaseComponent<IRatingProps, IRatingState> {
static defaultProps: IRatingProps;
private _id;
private _labelId;
constructor(props: IRatingProps);
componentWillReceiveProps(nextProps: IRatingProps): void;
render(): JSX.Element;
private _renderStar(rating);
private _onFocus(value, ev);
private _onBlur(option, ev);
private _onChange(rating, evt);
private _getLabel(rating);
private _getIcon();
private _getInitialValue(props);
private _getClampedRating(rating);
}