New to Kendo UI for Vue? Start a free 30-day trial

FieldProps

Interface

Represents the props of the Field component that you use inside the Kendo UI for Vue Form component.

Definition

Package:@progress/kendo-vue-form

Properties

Sets how many columns the field spans in the form layout. The parent FormElement must have the cols prop set. Accepts a number or an array of responsive breakpoints.

Example:
vue
<Field name="fullName" :component="Input" :col-span="2" />

Sets the component that the Field renders. You can set it to a Vue component or to the name of an HTML element, for example, input, select, or textarea. The component receives the FieldRenderProps.

id?

string

Sets the id of the field. The Field passes it to the rendered component, so that a label can target the editor.

name

string

Sets the name of the field in the Form state. Supports nested fields in the user.age and users[index].name formats.

onChange?

(event: any) => void

Fires when the editor of the Field changes its value and the Form updates its internal state. The event name is change. Use it to update related fields.

The Form listens to this editor event and keeps its internal state up to date on its own. Use this event only to run custom logic.

Parameters:eventany

Sets the validation functions for the Field level. Currently, validator supports only synchronous functions. When you pass an array, do not create it inline in the template, because an inline array can cause an infinite loop. Define the array once in your <script setup> block instead.