Skip to content
This repository has been archived by the owner on Oct 24, 2018. It is now read-only.

Commit

Permalink
add refresh method
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Aug 9, 2017
1 parent ff814d7 commit 5ad2017
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-table-component",
"version": "1.4.0-rc.1",
"version": "1.4.0-rc.2",
"description": "A straightforward Vue component to filter and sort tables",
"main": "dist/index.js",
"jsnext:main": "src/index.js",
Expand Down
6 changes: 4 additions & 2 deletions src/components/TableComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,6 @@
await this.mapDataToRows();
},
async mapDataToRows() {
const data = this.usesLocalData
? this.prepareLocalData()
Expand Down Expand Up @@ -237,6 +235,10 @@
return response.data;
},
async refresh() {
await this.mapDataToRows();
},
changeSorting(column) {
if (this.sort.fieldName !== column.show) {
this.sort.fieldName = column.show;
Expand Down

0 comments on commit 5ad2017

Please sign in to comment.