• Introduction
  • Getting Started
  • Native Components
    • Animation
    • Buttons
    • Charts
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gauges
    • Gridupdated
    • Iconsnew
    • Indicatorsupdated
    • Inputsupdated
    • Labels
    • Layoutupdated
    • ListBoxnew
    • ListViewnew
    • Notification
    • PDF Processing
    • Popup
    • Progress Barsupdated
    • Scheduler
    • ScrollView
    • Tooltip
    • TreeListnew
    • TreeView
    • Upload
  • Wrapper Components
  • Sample Applications
  • Styling & Themes
  • Common Features
  • Project Setup
  • Knowledge Base
  • Changelog
  • FAQ
  • Troubleshooting

Getting Started with the Kendo UI for Vue Native Layout Package

This guide provides essential information about using the Kendo UI for Vue Native Layout package—you will learn how to install the package, add a PanelBar component to your project, style the component, and activate your license. The steps demonstrated in this guide are applicable to all Vue Layout components.

The Layout 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.

After completing this guide, you will be able to reproduce the following example.

Example
View Source
Change Theme:

Setting Up Your Vue Project

Before you install the Kendo UI for Vue Native Layout package, make sure that you have a running Vue project. The easiest way to set up a Vue project is to use the approach described in the Set up the Vue project section of the First Steps with JavaScript article.

Installing the Layout Package

All Kendo UI for Vue Native packages are distributed through npm and offer a similar installation experience. To use the PanelBar(for example) component, start with the installation of the Layout npm package and its dependencies. Use Node.js v5.0.0 or later.

Navigate to the root folder of your Vue project and run the following command:

npm install --save @progress/kendo-vue-layout @progress/kendo-vue-progressbars @progress/kendo-licensing @progress/kendo-vue-intl @progress/kendo-svg-icons

Importing the Components

After installing the package, in the src/App.vue file of your Vue project, import the PanelBar component from the Layout package.

// ES2015 module syntax
import { PanelBar } from "@progress/kendo-vue-layout";
// CommonJS format
const { PanelBar } = require('@progress/kendo-vue-layout');

If your project requires more Layout components, you can import them too. The Layout package provides the following components:

  • AppBar
  • Avatar
  • BottomNavigation
  • Card
  • Drawer
  • ExpansionPanel
  • Menu
  • PanelBar
  • Splitter
  • Stepper
  • TabStrip

Using the Components

  1. Define the Native PanelBar's rows as a data property.

      items: [
        {
          title: 'Competition',
          content: 'competitionOverview',
        },
        {
          title: 'Winners',
          items: [
            { title: 'Winners 2022' },
            { title: 'Winner 2021' },
            { title: 'Winner 2020' },
          ],
        },
      ],
  2. Add the following PanelBar definition in the template section of the src/App.vue file in your project.

      <div class="panelbar-wrapper">
         <PanelBar :expand-mode="'single'" :items="items">
            <template v-slot:competitionOverview>
            <div style="padding: 10px">
               A very demanding competition with more than 5000 participants.
            </div>
            </template>
         </PanelBar>
      </div>
  3. To style the PanelBar, install and import the Default theme, which is one of the three beautiful themes for Kendo UI for Vue.

    1. Install the Default theme package.

      npm install --save @progress/kendo-theme-default
    2. Import the Theme package in src/App.vue.

      import '@progress/kendo-theme-default';
  4. Build, run and test the application by typing the following command in the root folder of your project:

    npm run dev
  5. Try the other Kendo UI for Vue Native Layout components

After going through the above steps, now you can try the all Layout components by yourself. Add other components to the newly created project by importing and then defining them in the template section. More details about how the different component can be configured you can find in each of the links in the Suggested Links section below.

Activating Your License Key

Using any of the UI components in the Kendo UI for Vue Native library requires either a commercial license key or an active trial license key.

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

Dependencies

The Layout package requires you to install the following peer dependencies in your application:

Package NameDescription
vue 2.6.11 or 3.0.0Contains the functionality necessary to define Vue components.
@progress/kendo-licensingContains the internal infrastructure related to the licensing of the Kendo UI for Vue Native components.
@progress/kendo-svg-iconsContains the SVG icons for the components
@progress/kendo-vue-layoutContains the Kendo UI for Vue Native Layout components.
@progress/kendo-vue-intlContains the Internationalization package that handles the desired cultures and applies data formatting in all Native Kendo UI for Vue components of your project.

Learning Resources