Skip to content

How to access the "total" returned from each call #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Waicung opened this issue Aug 30, 2017 · 1 comment
Closed

How to access the "total" returned from each call #28

Waicung opened this issue Aug 30, 2017 · 1 comment

Comments

@Waicung
Copy link

Waicung commented Aug 30, 2017

Hi, hootlex

I am using this to create a table view of users, whereas I want to display the total number of users at the top. (Pagination based on other options such as gender or nationalities, so total number will change)

I understand that I can make a separated call to get the value, but wouldn't it be great if we can access it when "update" is fire, instead of emitting only the data property. Is there a reason not emitting the whole response object?

Thanks

@Waicung
Copy link
Author

Waicung commented Aug 30, 2017

catch event @request_finish solve the problem.

@Waicung Waicung closed this as completed Aug 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant