diff --git a/package.json b/package.json index 210a9a6..516a43e 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/TableComponent.vue b/src/components/TableComponent.vue index 67e9fa4..99a0dc5 100644 --- a/src/components/TableComponent.vue +++ b/src/components/TableComponent.vue @@ -199,8 +199,6 @@ await this.mapDataToRows(); }, - - async mapDataToRows() { const data = this.usesLocalData ? this.prepareLocalData() @@ -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;