hootlex/vuejs-paginator

use with raw data instead of resource_url

Opened this issue · 2 comments

Hi first let me clear that, I'm new to vue.js and I don't have much idea about component events and all.

can you please provide me the demo code where I can provide json data instead of resource_url?

My api is returning me array of objects from which I will create array of object (one object for each page required as per your demo code) required for pagination to work by creating json for different page. On next or previous page click I want to display data from this new array instead of resource_url.

I know it might not be an issue but my skill limitations with vue framework.

nise commented

I have the same problem and think its a matter of documentation. Fetching data through ajax should be optinal instead of mandatory.

In the documentation there's a topic called Fetch Data Manually. I thought it would explain how to use raw data instead of the resource_url. Sadly, I only got confused about it.

@hootlex could you give us a clarification on this and if it's possible?