Vue EasyTable

2.27.1 · active · verified Sun Apr 19

Vue EasyTable is a robust data table component specifically designed for Vue 2.x applications, offering a comprehensive suite of features for displaying and interacting with tabular data. It supports virtual scrolling, allowing it to efficiently render up to 300,000 rows, along with functionalities such as column fixing, header grouping, filtering, sorting, column resizing, and in-cell editing. The current stable version is 2.27.1, with a release cadence that includes regular minor feature additions (like new languages) and bug fixes. Key differentiators include its focus on high performance with large datasets, extensive customization options for cell and header rendering, and built-in internationalization and theme support. It requires `vue` (>=2.6.0) and `lodash` as peer dependencies, making it suitable for existing Vue 2 projects that need a feature-rich, performant table solution.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates a minimal Vue EasyTable setup with static data and column definitions, rendering a basic table component.

import Vue from 'vue';
import { VeTable } from 'vue-easytable';
import 'vue-easytable/libs/themes-base/index.css';

new Vue({
  el: '#app',
  components: { VeTable },
  data() {
    return {
      columns: [
        { field: 'id', key: 'a', title: 'ID', align: 'center' },
        { field: 'name', key: 'b', title: 'Name', align: 'left' },
        { field: 'date', key: 'c', title: 'Date', align: 'right' }
      ],
      tableData: [
        { id: 1, name: 'John Doe', date: '2023-01-01' },
        { id: 2, name: 'Jane Smith', date: '2023-01-02' },
        { id: 3, name: 'Robert Johnson', date: '2023-01-03' }
      ]
    };
  },
  template: `
    <div id="app">
      <h3>Basic Vue EasyTable Example</h3>
      <ve-table
        :columns="columns"
        :table-data="tableData"
      />
    </div>
  `
});

view raw JSON →