Vuetable-2: How to I refresh the Data within Vuetable?

Created on 18 Apr 2017  路  4Comments  路  Source: ratiw/vuetable-2

Here is my gist, am calling the fetchData function but the Vuetable doesn't refresh the data. Not sure what is missing over here?

https://gist.github.com/coderabsolute/a75a32b1237994f4ad708df90f3585d9

Most helpful comment

For retrieving data it should be sufficient to have the api url only.
Do you have issues when deleting/editing items?
You can use this.$refs.vuetable.refresh() to force trigger an api call. that will returned the new items or access the tableData within the component and delete/edit your element based on some index.

All 4 comments

For retrieving data it should be sufficient to have the api url only.
Do you have issues when deleting/editing items?
You can use this.$refs.vuetable.refresh() to force trigger an api call. that will returned the new items or access the tableData within the component and delete/edit your element based on some index.

this.$refs.vuetable.refresh() has solved the issue. Thanks!

Thanks. This would be solving a problem I had

this.$refs.vuetable.refresh() is not working for me I'm using graphql endpoint to the data table.how to reload() or refresh() the data table

Was this page helpful?
0 / 5 - 0 ratings

Related issues

larryu picture larryu  路  6Comments

kawamataryo picture kawamataryo  路  3Comments

hjJunior picture hjJunior  路  3Comments

mannyyang picture mannyyang  路  3Comments

arthurvasconcelos picture arthurvasconcelos  路  3Comments