Vue-good-table: Fetch data from API

Created on 5 Apr 2018  路  3Comments  路  Source: xaksis/vue-good-table

Issue Type

  • [x] Enhancement Request

Specs

Using the 2.0.2 version, I would like to use Good-table which is very neat to do API calls to fetch data. My API is already taking care of the pagination, sorting and filtering and return formatted json but I don't know how to send the relevant parameters to it from Good-table and then how to process what has been returned.

is it possible? That would be perfect.

Cheers
S.

enhancement

Most helpful comment

@sylvaincaillot I'm currently working on remote mode for the table... which won't do any sorting/paging etc locally and instead will just emit events with the necessary parameters so you can update the table with remote data. I will try and come up with an example soon.

All 3 comments

@sylvaincaillot I'm currently working on remote mode for the table... which won't do any sorting/paging etc locally and instead will just emit events with the necessary parameters so you can update the table with remote data. I will try and come up with an example soon.

That would be perfect, just emit the events, or provide the sorting, query, paging parameters and the API will take care of returning the relevant data.
Thank you

@sylvaincaillot I was finally able to test and release a backend driven vue-good-table instance and can confirm it works well. I created a wiki to go over the workflow:
https://github.com/xaksis/vue-good-table/wiki/Remote-Mode-Workflow

Let me know if you have any issues with this. Closing.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tverilytt picture tverilytt  路  6Comments

sylvaincaillot picture sylvaincaillot  路  4Comments

Sharvadze picture Sharvadze  路  4Comments

jannishuebl picture jannishuebl  路  3Comments

luizzz picture luizzz  路  6Comments