pagerjs icon indicating copy to clipboard operation
pagerjs copied to clipboard

Display loader while loading remote data into viewModel

Open elleryfamilia opened this issue 12 years ago • 1 comments

Is there a way I can do something like pass a method to sourceOnShow so that it loads data into my viewModel, and have Pager display the loader while that method is executing?

It looks like right now it only load "static" html pages, but I want to grab some JSON from the server instead. Thanks!

elleryfamilia avatar Jul 28 '13 22:07 elleryfamilia

If you want to load something into the viewmodel I would recommend using withOnShow. The loader will however not be displayed since its connected with sourceOnShow (at the moment).

Sent from my iPhone

On Jul 28, 2013, at 18:02, Ellery Familia [email protected] wrote:

Is there a way I can do something like pass a method to sourceOnShow so that it loads data into my viewModel, and have Pager display the loader while that method is executing?

It looks like right now it only load "static" html pages, but I want to grab some JSON from the server instead. Thanks!

— Reply to this email directly or view it on GitHub.

finnsson avatar Jul 29 '13 00:07 finnsson