w-table-vue
A table component for vue(vue2).
5,140
| Install | |
|---|---|
npm install w-table-vue |
|
| Latest Version: | 1.0.27 |
| Vue: | 2 |
| License: | MIT |
| Last Updated: | Oct 19, 2026 |
| Links: | GitHub · npm |
Maintainer: semisphere
w-table-vue
A table component for vue(vue2).
Documentation
To view documentation or get support, visit docs.
Example
To view some examples for more understanding, visit examples:
all components: web [source code]
Installation
Using npm(ES6 module):
npm i w-table-vue
Import all components:
//choose component
<w-table-edit
...
></w-table-edit>
//import
import WTableVue from 'w-table-vue'
//use
Vue.use(WTableVue)
Import one component:
//choose component
<w-table-edit
...
></w-table-edit>
//import
import WTableEdit from 'w-table-vue/src/components/WTableEdit.vue'
//component
Vue.component('w-table-edit',WTableEdit)
//or
export default {
components: {
WTableEdit,
//or
'w-table-edit': WTableEdit,
},
...
}
In a browser(UMD module):
Add script for vue.
<script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.min.js"></script>
Add script for w-aggrid-vue, ag-grid-community and ag-grid-vue have been bundled into the umd file(css included), only vue is required.
<script src="https://cdn.jsdelivr.net/npm/w-table-vue@1.0.27/dist/w-table-vue.umd.js"></script>
Directly use:
//app and component
<div id="app">
<w-table-edit
style="width:600px; height:400px;"
:name="name"
:description="description"
:opt="opt"
:editable="true"
></w-table-edit>
</div>
//use
Vue.use(window['w-table-vue'])
//new
new Vue({
el: '#app',
data: {
name: 'Car Price',
description: 'The relationship between different car types and prices',
opt: {
keys: ['make', 'model', 'price'],
kpHeadFilterType: { //default: num (num,text,time,set)
'make': 'text',
'model': 'text',
'price': 'num',
},
rows: [
{ make: 'Toyota', model: 'Celica', price: 35000 },
{ make: 'Ford', model: 'Mondeo', price: 32000 },
{ make: 'Porsche', model: 'Boxter', price: 72000 },
],
},
}
})
Related Packages
vue3-table-lite
A simple and lightweight data table component for Vue.js 3. Features sorting, pa...
147,296
258
Version History
| Version | Released | License |
|---|---|---|
| 1.0.27 | MIT | |
| 1.0.26 | MIT | |
| 1.0.25 | MIT | |
| 1.0.24 | MIT | |
| 1.0.23 | MIT | |
| 1.0.22 | MIT | |
| 1.0.21 | MIT | |
| 1.0.20 | MIT | |
| 1.0.19 | MIT | |
| 1.0.18 | MIT | |
| 1.0.17 | MIT | |
| 1.0.16 | MIT | |
| 1.0.15 | MIT | |
| 1.0.14 | MIT | |
| 1.0.13 | MIT | |
| 1.0.12 | MIT | |
| 1.0.11 | MIT | |
| 1.0.10 | MIT | |
| 1.0.9 | MIT | |
| 1.0.8 | MIT | |
| 1.0.7 | MIT | |
| 1.0.6 | MIT | |
| 1.0.5 | MIT | |
| 1.0.4 | MIT | |
| 1.0.3 | MIT | |
| 1.0.2 | MIT | |
| 1.0.1 | MIT | |
| 1.0.0 | MIT |