vuejs-table-component
vuejs-table-component
A vue component for rendering datatables. With customizable sorting and searching capabilities.
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
| Props | Description | Required | Type | Default |
|---|---|---|---|---|
| columns | Corresponding columns of the table | true | Array | - |
| dataset | Data to be used for pupulating the table | true | Array | - |
| perpage | List of page sizes | false | Array | [10, 50, 100] |
| indices | Fields that should be searchable by search | false | Array | [] |
| search | A v-model value binded with a search field | false | String | '' |
License
Related Packages
@lossendae/vue-table
Simple table component for Vue.js 2.x with pagination and sortable columns
736
11
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.2.9 | ^2.4.2 | MIT | |
| 1.2.8 | ^2.4.2 | MIT | |
| 1.2.7 | ^2.4.2 | MIT | |
| 1.2.6 | ^2.4.2 | MIT | |
| 1.1.10 | ^2.4.2 | MIT | |
| 1.1.9 | ^2.4.2 | MIT | |
| 1.1.8 | ^2.4.2 | MIT | |
| 1.1.6 | ^2.4.2 | MIT | |
| 1.1.5 | ^2.4.2 | MIT | |
| 1.1.4 | ^2.4.2 | MIT | |
| 1.1.3 | ^2.4.2 | MIT | |
| 1.1.2 | ^2.4.2 | MIT | |
| 1.1.1 | ^2.4.2 | MIT | |
| 1.1.0 | ^2.4.2 | MIT | |
| 1.0.14 | ^2.4.2 | MIT | |
| 1.0.13 | ^2.4.2 | MIT | |
| 1.0.12 | ^2.4.2 | MIT | |
| 1.0.11 | ^2.4.2 | MIT | |
| 1.0.10 | ^2.4.2 | MIT | |
| 1.0.9 | ^2.4.2 | MIT | |
| 1.0.8 | ^2.4.2 | MIT | |
| 1.0.7 | ^2.4.2 | MIT | |
| 1.0.5 | ^2.4.2 | MIT | |
| 1.0.4 | ^2.4.2 | MIT | |
| 1.0.3 | ^2.4.2 | MIT | |
| 1.0.2 | ^2.4.2 | MIT | |
| 1.0.1 | ^2.4.2 | MIT | |
| 1.0.0 | ^2.4.2 | MIT |