Rating
Rating is a field control that allows the user to select a number of stars based on the configuration.
Demo
Required Imports
import { RatingFieldModule } from 'nextsapien-component-lib';
Properties

Type | Name | Description | Data type | Required | Default | Demo
--- | --- | --- | --- | --- | --- | ---
Input | label | The label that will be displayed next to the form field. | string | true | n/a |
Input | formFieldControl | The Angular FormControl that this FormField is tied to. | FormControl | true | n/a | Value: {{ formFieldControl?.value }}
Input | submitted | Tells the FormField if the form has been submitted. If true, and if the wrapped FormControl contains errors, the UI is updated to indicate the error and display an error message. | boolean | false | n/a |
Input | required | Tells the FormField if the form is required. | boolean | false | n/a |
Input | readonly | Tells the FormField if the form is read only. | boolean | false | n/a |
Input | showLabelInRequiredErrorMessage | Tells if the Required text should include the Label in the message | boolean | false | true |
Input | options | Select Options | SelectOption[] | false | n/a | n/a
Input | showRequiredIndicator | Displays a required indicator next to the label.

Example usage
`{{ ratingFieldCode }}`