0.2.13 • Published 5 years ago

vuetify-datatable-extended v0.2.13

Weekly downloads
11
License
MIT
Repository
-
Last release
5 years ago

vuetify-datatable-extended

This is an extension of vuetify's awesome v-data-table. It gives you additional features including:

  • A search field
  • Per field filtering
  • Column selection

Install

yarn add vuetify-datatable-extended

Use the plugin in vue somewhere.

import Vue from "vue";
import VuetifyTable from "vuetify-datatable-extended";

Vue.use(VuetifyTable);

Usage

Same API as v-data-table

This component has all the same API as <v-data-table /> and just adds additional features that most data-tables need.

Instead of v-data-table, use v-data-table-extended

Simple Example

DEMO HERE

<template>
  <v-data-table-extended 
    :headers="headers" 
    :items="desserts">
  </v-data-table-extended>
</template>

<script>
  export default {
    data() {
      return {
        headers: [
          {
            text: "Dessert (100g serving)",
            select_filter: true,
            value: "name",
          },
          {
            text: "Calories",
            value: "calories",
            select_filter: true
          },
        ],
        desserts: [
          {
            name: "Donut",
            calories: 500,
            fat: 25.0,
            carbs: 51,
            protein: 4.9,
            iron: "22%",
          },
          {
            name: "KitKat",
            calories: 500,
            fat: 26.0,
            carbs: 65,
            protein: 7,
            iron: "6%",
          },
        ];,
      };
    },
  };
</script>

This will give you a v-data-table with all the same hooks and props, but also:

  • A search field
  • Per field filtering
  • Column selection
0.2.13

5 years ago

0.2.12

5 years ago

0.2.11

5 years ago

0.2.10

5 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.3

5 years ago

0.2.1

5 years ago

0.2.2

5 years ago

0.2.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

0.0.0

5 years ago