Rate Input
Overview
Use the rate input component to prompt the user to enter a rate value.

Development
Web component development
Component reference
p-inputNumber
Allows user to edit values that have a rate format
View the p-inputNumber reference doc
If you're adding PrimeNG to your solution for the first time, reference their setup documentation. It's important to note that the inclusion of the nova-light theme css is not necessary to work with Responsive UI. Styling for the PrimeNG components is provided by Responsive UI's theming.
Implementation
Begin by importing the InputNumberModule module into your application.
Add a PrimeNG p-inputNumber component with mode="decimal" for the rate input. Bind minFractionDigits to the minimum amount of decimal digits required. You can additionally set properties such as step, min and max. Add rui-form-control as the inputStyleClass to inherit the correct styling.
Add <span class="input-group-addon">%</span> after the p-inputNumber element to display a percent sign after the input. Nest both the p-inputNumber and this span within a div that has the input-group CSS class.
Angular component development
Component reference
p-inputNumber
Allows user to edit values that have a rate format
View the p-inputNumber reference doc
If you're adding PrimeNG to your solution for the first time, reference their setup documentation. It's important to note that the inclusion of the nova-light theme css is not necessary to work with Responsive UI. Styling for the PrimeNG components is provided by Responsive UI's theming.
Implementation
Begin by importing the InputNumberModule module into your application.
Add a PrimeNG p-inputNumber component with mode="decimal" for the rate input. Bind minFractionDigits to the minimum amount of decimal digits required. You can additionally set properties such as step, min and max. Add rui-form-control as the inputStyleClass to inherit the correct styling.
Add <span class="input-group-addon">%</span> after the p-inputNumber element to display a percent sign after the input. Nest both the p-inputNumber and this span within a div that has the input-group CSS class.
Design
Figma design
| Dev Component | Design Component Name |
|---|---|
| Rate input | RUI / Forms / Rate Input |
Adobe XD design
- Sample App - Editing Form Data
| Dev Component | Design Component Name |
|---|---|
| Rate input | JHA / Forms / Rate Input |