Getting Started with the Kendo UI for Vue TaskBoard
This guide provides essential information about using the Kendo UI for Vue TaskBoard package. You will learn how to install the TaskBoard package, add a Vue TaskBoard component to your project, style the component, and activate your license.
After completing this guide, you will be able to reproduce the following example.
Before You Begin
To follow the steps in this guide, you need to have a Vue project set up. If you don't have one, you can create a new Vue application using Vite by running the following command in your terminal:
npm create vite@latest my-app -- --template vue-ts
This guide requires that you have basic knowledge of Vue and TypeScript, and that you have already created a blank Vue project.
You can speed up the development of your Kendo UI for Vue application with the Kendo UI Productivity Tools extension for VS Code.
Install the Component
To install the TaskBoard package, run the following command in the root folder of your Vue project:
npm i @progress/kendo-vue-taskboard
Importing the Component
After installing the package, import the TaskBoard component in the Vue App.
In the component file of your Vue project (for example, src/App.vue), import the TaskBoard component from the TaskBoard package.
import { TaskBoard } from '@progress/kendo-vue-taskboard';
Using the Component
-
Define the TaskBoard columns, tasks, and priorities, and handle the
changeevent of the component to update the data.jsimport { ref } from 'vue'; const columns = ref([ { id: 1, title: 'To-Do', status: 'todo' }, { id: 2, title: 'In Progress', status: 'inProgress' }, { id: 3, title: 'Done', status: 'done' } ]); const tasks = ref([ { id: 1, title: 'Campaigns', description: 'Create a new landing page for campaign', status: 'todo', priority: { priority: 'Urgent', color: 'orange' } }, { id: 2, title: 'SEO Analytics', description: 'Review SEO results', status: 'inProgress', priority: { priority: 'High Priority', color: 'blue' } }, { id: 3, title: 'Content', description: 'Publish new blogpost', status: 'done', priority: { priority: 'Low Priority', color: 'green' } } ]); const priorities = [ { priority: 'Low Priority', color: 'green' }, { priority: 'High Priority', color: 'blue' }, { priority: 'Urgent', color: 'orange' } ]; const onChange = (event) => { if (event.type === 'column') { columns.value = event.data; } else { // A new task has been added. if (event.item && event.item.id === undefined) { event.item.id = Math.max(0, ...event.data.map((task) => task.id ?? 0)) + 1; } tasks.value = event.data; } }; -
Add the component's markup to the template of your Vue component and set the data. Optionally, configure the height of the TaskBoard component.
html<template> <TaskBoard :column-data="columns" :task-data="tasks" :priorities="priorities" :style="{ height: '700px' }" :tab-index="0" @change="onChange" /> </template>The example at the beginning of this guide also customizes the rendering of the columns and cards by using the
columnandcardproperties. For more information, see Custom Rendering. -
To style the TaskBoard, install and import the Meridian theme, which is one of the five beautiful themes for Kendo UI for Vue.
3.1. Install the Meridian theme package.
shnpm i @progress/kendo-theme-meridian3.2. Import the CSS file from the package in your main entry file. Add this import before your existing styles.
jsimport '@progress/kendo-theme-meridian/dist/all.css'; -
Build and run the application by typing the following command in the root folder of your project:
shnpm run dev -
Navigate to http://localhost:5173 to see the Kendo UI for Vue TaskBoard component on the page.
Activating Your License Key
Using the Kendo UI for Vue TaskBoard requires a license key to be installed in your project:
- Trial usage: Start a free trial and download a trial license key file.
- Commercial usage: Purchase a license and download a commercial license key file.
Without a valid license key file, the component will display licensing warnings and watermarks.
Follow the instructions on the Kendo UI for Vue My License page to download and install your license key file. You can skip this step if your application already contains a Kendo UI for Vue license file.
Dependencies
The TaskBoard package requires you to install the following peer dependencies in your application:
| Package Name | Description |
|---|---|
| vue 3.0.0+ | Contains the functionality necessary to define Vue components. |
| @progress/kendo-licensing | Contains the internal infrastructure related to licensing. |
| @progress/kendo-svg-icons | Contains the Kendo UI for Vue SVG icons. |
| @progress/kendo-vue-buttons | Contains the Kendo UI for Vue Buttons components. |
| @progress/kendo-vue-common | Contains the Kendo UI for Vue common utilities and components. |
| @progress/kendo-vue-dialogs | Contains the Kendo UI for Vue Dialogs components. |
| @progress/kendo-vue-dropdowns | Contains the Kendo UI for Vue DropDowns components. |
| @progress/kendo-vue-form | Contains the Kendo UI for Vue Form components. |
| @progress/kendo-vue-inputs | Contains the Kendo UI for Vue Inputs components. |
| @progress/kendo-vue-intl | Contains the Kendo UI for Vue Internationalization package that applies the desired cultures by providing services and pipes for the parsing and formatting of dates and numbers. |
| @progress/kendo-vue-labels | Contains the Kendo UI for Vue Labels components. |
| @progress/kendo-vue-layout | Contains the Kendo UI for Vue Layout components. |
| @progress/kendo-vue-popup | Contains positioning logic for the Popup component. |