Migration Guide for nv-fieldnumber
In the latest version of the nv-fieldnumber component, we've made several important changes to the properties to improve usability and consistency. Below is a guide to help you update your existing components from version 2 to version 3.
Deprecations
1. prop message -> description
The message property has been renamed to description. This new name better describes the property's functionality, which allows the radio button to be clearer and more informative.
Old Usage:
<nv-fieldnumber message="Description of the number field"></nv-fieldnumber>
New Usage:
<nv-fieldnumber description="Description of the number field"></nv-fieldnumber>
2. prop validation -> errorDescription
The validation property has been deprecated in favor of errorDescription. This change clarifies that this property is used to describe an error related to the input field.
Old Usage:
<nv-fieldnumber validation="Error occurred"></nv-fieldnumber>
New Usage:
<nv-fieldnumber error error-description="Error occurred"></nv-fieldnumber>
Breaking Changes
1. prop after -> removed
The after property have been removed. This is replaced by the feedback icons and the stepper buttons.
2. prop textInputType -> removed
The textInputType property have been removed since this component is only meant to be used for numbers.