Vue playground

Nova v3.37.0

Preview

Vue

nv-fieldnumber migration

Moving from message and validation to description and errorDescription.

← nv-fieldnumber

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:

html<nv-fieldnumber message="Description of the number field"></nv-fieldnumber>

New Usage:

html<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:

html<nv-fieldnumber validation="Error occurred"></nv-fieldnumber>

New Usage:

html<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.