vue-tables-2
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -27,3 +27,4 @@ module.exports = { | ||
optionText: require('../filters/option-text'), | ||
render: require('../methods/render') | ||
render: require('../methods/render'), | ||
rowWasClicked:require('../methods/row-was-clicked') | ||
} | ||
@@ -30,0 +31,0 @@ } |
@@ -16,3 +16,3 @@ module.exports = function(h, that) { | ||
rows.push(<tr>{columns} </tr>) | ||
rows.push(<tr on-click={that.rowWasClicked.bind(that, row)}>{columns} </tr>) | ||
}.bind(that)) | ||
@@ -19,0 +19,0 @@ |
{ | ||
"name": "vue-tables-2", | ||
"description": "Vue.js 2 grid components", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "vue2", |
# Vue Tables 2 | ||
[](https://badge.fury.io/js/vue-tables-2) | ||
[](https://badge.fury.io/js/vue-tables-2) | ||
@@ -107,21 +107,2 @@ This Vue package offers an easy and intuitive way of displaying Bootstrap-styled grids with data coming either from the client or from the server. | ||
### Events | ||
Listen to events using the `bus` you pulled above. | ||
E.g: | ||
bus.$on('vue-tables.loaded', function(data) { | ||
// Do something | ||
}); | ||
`vue-tables.loading` | ||
Fires off when a request is sent to the server. Sends through the request data. | ||
`vue-tables.loaded` | ||
Fires off after the response data has been attached to the table. Sends through the response. | ||
You can listen to those complementary events on a parent component and use them to add and remove a *loading indicator*, respectively. | ||
### Programmatic reload | ||
@@ -178,2 +159,25 @@ | ||
### Events | ||
Listen to events using the `bus` you pulled above. | ||
E.g: | ||
bus.$on('vue-tables.loaded', function(data) { | ||
// Do something | ||
}); | ||
`vue-tables.loading` (server) | ||
Fires off when a request is sent to the server. Sends through the request data. | ||
`vue-tables.loaded` (server) | ||
Fires off after the response data has been attached to the table. Sends through the response. | ||
You can listen to those complementary events on a parent component and use them to add and remove a *loading indicator*, respectively. | ||
`vue-tables.row-click` | ||
Fires off after a row was clicked. sends through the row | ||
# Custom Filters | ||
@@ -180,0 +184,0 @@ |
45228
86
1130
242