formgen-react
Version:
Formula generator with JSON for react. UI Fabric controls are used for rendering
20 lines (19 loc) • 775 B
TypeScript
import { IFormBaseInputProps, FormBaseInput } from '../../formBaseInput/FormBaseInput';
import { IFormBaseInputState } from '../../formBaseInput/FormBaseInput.types';
import { IFormContext } from '../../form/Form.types';
import { IRatingProps } from 'office-ui-fabric-react';
/**
* Rating input for the Form. Displays a boolean value as a Rating
*/
export declare class FormRating extends FormBaseInput<IRatingProps, IFormBaseInputProps, IFormBaseInputState> {
constructor(props: IFormBaseInputProps, context: IFormContext);
/**
* Render a Rating control
*/
render(): JSX.Element;
/**
* Stores the selected value of the rating to the state.
* @param rating the number to store
*/
private _onChange(rating);
}