Kendo UI for Vue Native Form Overview

Kendo UI for Vue Native Form is a small and fast package for form state management with zero dependencies.

The component integrates with all Kendo UI for Vue components. The content of the Form should be defined in a separate component. The "content" component then should be nested inside the Form. With this nesting, the Form will provide all needed properties to the nested "content" component.

To use the provided Form functionality, the KendoFrom Injected Property should be injected in the child "content" component using the below code.

    inject: {
        kendoForm: { default: {} },  
    }

For creating form layouts the Form package provides the:

The Form Package is part of Kendo UI for Vue, a professional grade UI library with 100+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Basic Usage

The following example demonstrates the Form and Field components in action. You will see the way the FormContent custom component defines the Form fields.

Example
View Source
Change Theme:

Functionality and Features

Installation

To initialize the Form, either:

Using CDN

To use the Kendo UI for Vue Native Form with CDN, follow the below steps:

  1. Reference the form package.
  <script src="https://unpkg.com/@progress/kendo-vue-form@latest/dist/cdn/js/kendo-vue-form.js"></script>
  1. Reference one of the Kendo UI themes to style your components.
    // Load the Kendo Default Theme
    <link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-default@latest/dist/all.css">

    // Load the Kendo Bootstrap Theme
    <link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-bootstrap@latest/dist/all.css">
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">

    // To load the Kendo Material Theme
    <link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-material@latest/dist/all.css">

    // To load the Kendo Fluent Theme
    <link rel="stylesheet" href="https://unpkg.com/@progress/kendo-theme-fluent@latest/dist/all.css">
  1. Follow the instructions in this article to activate your product license. You can skip this step if your application already contains a license key.

Initializing with Webpack

  1. Download and install the package. Use Node.js v5.0.0 or later.

       npm install --save @progress/kendo-vue-form @progress/kendo-licensing @progress/kendo-svg-icons
  2. Once installed, import the package module.

     // ES2015 module syntax
     import { Form, Field } from '@progress/kendo-vue-form';
    // CommonJS format
    const { Form, Field } = require('@progress/kendo-vue-form');
  3. You are required to install one of the Kendo UI for Vue themes to style your components. For more information on how to add the styles, refer to the article on getting started.

  4. Follow the instructions on the Kendo UI for Vue My License page to activate your license. You can skip this step if your application already contains a Kendo UI for Vue license file.

Dependencies

The Form package requires the following peer dependencies that have to be installed by your application:

  • vue 2.6.11* or 3.0.0*
  • @progress/kendo-licensing
  • @progress/kendo-svg-icons

Vue 2 is currently in its end-of-support phase till Nov 2024. After our last major release for 2024, Vue 2 will no longer be supported in the new versions of the Kendo UI for Vue components. Please check our Vue 2 End of Support article for more details.

Support and Learning Resources

Additional Resources