Vue playground

Nova v3.37.0

Preview

Vue

nv-fieldtext migration

Moving to description, errorDescription and type.

← nv-fieldtext

Migration Guide for nv-fieldtext

In the latest version of the nv-fieldtext 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 deprecated in favor of description. This change aligns the property name more closely with its function, which is to provide additional context or information about the input field.

Old Usage:

html<nv-fieldtext message="Description of the input field"></nv-fieldtext>

New Usage:

html<nv-fieldtext description="Description of the input field"></nv-fieldtext>

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-fieldtext validation="Error occurred"></nv-fieldtext>

New Usage:

html<nv-fieldtext error error-description="Error occurred"></nv-fieldtext>

3. prop textInputType -> type

The textInputType property has been deprecated. Use type instead.

Old Usage:

html<nv-fieldtext text-input-type="email"></nv-fieldtext>

New Usage:

html<nv-fieldtext type="email"></nv-fieldtext>

Breaking Changes

1. prop textInputType -> removed values

Certain values for the textInputType property have been removed. The following values are no longer supported:

  • color
  • file
  • image
  • password
  • search
  • url