1.2.9 • Published 6 years ago

vuejs-table-component v1.2.9

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

vuejs-table-component

npm npm npm Build Status Codecov npm

A vue component for rendering datatables. With customizable sorting and searching capabilities.

Live Demo

Works with Vue 2.*

Installation

Install via CDN

<script src="https://unpkg.com/accounting-js"></script>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/vuejs-table-component"></script>

<script>
  Vue.use(Datatable.default)
</script>

Install via NPM

$ npm install vuejs-table-component --save

Register as Component

import Vue from 'vue'
import Datatable from 'vuejs-table-component'

export default {
  name: 'App',

  components: {
    Datatable
  }
}

Register as Plugin

import Vue from 'vue'
import Datatable from 'vuejs-table-component'

Vue.use(Datatable)

Usage

Quick example

<template>
  <datatable columns="columns" dataset="rows"></datatable>
</template>

<script>
import Datatable from 'vuejs-table-component'

export default {
  name: 'App',

  components: {
    Datatable
  },

  data: () => ({
    price: ''
  }),
}
</script>

Props

PropsDescriptionRequiredTypeDefault
columnsCorresponding columns of the tabletrueArray-
datasetData to be used for pupulating the tabletrueArray-
perpageList of page sizesfalseArray10, 50, 100
indicesFields that should be searchable by searchfalseArray[]
searchA v-model value binded with a search fieldfalseString''

License

1.2.9

6 years ago

1.2.8

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.1.10

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago