# Getting Started with the Kendo UI for Vue ListView

This guide provides essential information about using the Kendo UI for Vue ListView package—you will learn how to install the ListView package, add a ListView component to your project, style the component, and activate your license.

<CtaPanelOverview></CtaPanelOverview>

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

[Demo Source](https://demos.telerik.com/kendo-vue-ui/listview/get-started/source.txt)

## Setting Up Your Vue Project

Before you install the Kendo UI for Vue ListView, 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](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/javascript-composition-api#1-set-up-the-vue-project) section of the [First Steps with JavaScript ](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/javascript-composition-api) article.

## Installing the ListView Package

All Kendo UI for Vue packages are distributed through npm and offer a similar installation experience. To use the ListView component, start with the installation of the ListView npm package and its [dependencies](https://www.telerik.com/kendo-vue-ui-develop/components/listview/get-started#dependencies). Use Node.js v5.0.0 or later.

```sh
npm install --save @progress/kendo-vue-listview @progress/kendo-licensing @progress/kendo-svg-icons
```

## Importing the Component

After installing the package, import the ListView component and the `products` data in the Vue App.

In the `src/App.vue` file of your Vue project, import the `ListView` component from the ListView package.

```jsx
// ES2015 module syntax
import { ListView } from "@progress/kendo-vue-listview";
```

```jsx
// CommonJS format
const { ListView } = require('@progress/kendo-vue-listview');
```

## Using the Component

1. Import the `products` data in the `src/App.vue` file.

   ```jsx
       import products from './products.json';
   ```

2. Add the ListView component in the `App` component.

   ```jsx
   <ListView
       :style="{ width: '100%', height: '600px' }"
       :data-items="products"
       :item="'myItem'"
   >
   </ListView>
   ```

3. Create and add inside the ListBox definition, the `myItem` slot template responsible for rendering each ListView item.

   ```jsx
   <template #myItem="{ props }">
     <div
       class="k-listview-item"
       :style="{ padding: '10px', borderBottom: '1px solid lightgrey' }"
     >
       {{ props.dataItem.ProductName }}
     </div>
   </template>
   ```

4. To style the ListView, install and import the [Meridian theme](https://www.telerik.com/design-system/docs/themes/kendo-themes/meridian/), which is one of the [five beautiful themes](https://www.telerik.com/kendo-vue-ui-develop/components/styling) for Kendo UI for Vue.

   1. Install the Meridian theme package.

      ```sh
      npm install --save @progress/kendo-theme-meridian
      ```

   2. Import the Theme package in `src/App.vue`..

      ```jsx
      import '@progress/kendo-theme-meridian';
      ```

5. Build, run and test the application by typing the following command in the root folder of your project:

   ```sh
   npm run dev
   ```

## Activating Your License Key

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

Follow the instructions on the [My License page](https://www.telerik.com/kendo-vue-ui-develop/components/my-license) 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 ListView package requires you to install the following [peer dependencies](https://nodejs.org/en/blog/npm/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.     |

## Suggested Links

* [Paging](https://www.telerik.com/kendo-vue-ui-develop/components/listview/paging)
* [Scrolling](https://www.telerik.com/kendo-vue-ui-develop/components/listview/scroll-modes)
* [Templates](https://www.telerik.com/kendo-vue-ui-develop/components/listview/templates)
* [Editing](https://www.telerik.com/kendo-vue-ui-develop/components/listview/editing)
* [Filtering](https://www.telerik.com/kendo-vue-ui-develop/components/listview/filtering)

## Learning Resources

* [Kendo UI for Vue - First Steps with JavaScript](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/javascript-composition-api)
* [Kendo UI for Vue - First Steps with JavaScript + Options API](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/javascript-options-api)
* [Kendo UI for Vue - First Steps with TypeScript](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/typescript-composition-api)
* [Kendo UI for Vue - First Steps with TypeScript + Options API](https://www.telerik.com/kendo-vue-ui-develop/components/getting-started/typescript-options-api)
* [Virtual Classroom - Kendo UI for Vue with TypeScript(Course Available to Trial and Commercial License Holders)](https://learn.telerik.com/learn/course/internal/view/elearning/45/kendo-ui-for-vue-with-typescript)
* [Kendo UI Productivity Tools extension for VS Code](https://www.telerik.com/kendo-vue-ui-develop/components/vscode-extension)
