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:
<NvFieldnumber Message="Description of the number field"></NvFieldnumber>
New Usage:
<NvFieldnumber Description="Description of the number field"></NvFieldnumber>
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:
<NvFieldnumber Validation="Error occurred"></NvFieldnumber>
New Usage:
<NvFieldnumber Error="true" ErrorDescription="Error occurred"></NvFieldnumber>
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.