ratiw / vuetable-2-tutorial

MIT License
258 stars 67 forks source link

Could you please add an example that does not use api-url but pass the data from parent component? #60

Closed taozhaolib closed 7 years ago

taozhaolib commented 7 years ago

My data query is complicated so I had to pass down the data from parent component directly to the vuetable. I ran into an error like this:

:data="tableData" :fields="fields" pagination-path="" @vuetable:pagination-data="onPaginationData" > No relevant data

If I replaced the :data attribute with api-url="http://xxxx" it then worked.

ratiw commented 7 years ago

Then, is it possible that your data structure of the tableData and the one returning from http://xxxx is different?

See this codepen if it helps.

taozhaolib commented 7 years ago

Thanks this really helps!

apooslr commented 6 years ago

I would also like to pass the table my own data, not something I get form an api, how can I do that?

ratiw commented 6 years ago

@AndreaRylander See the link to the codepen above.