Data Table custom widget current page number binding


I created a data table custom widget and I need to get a current page number in order to use Identity API such as


I could get the current page number inside widget like

I created a Bidirectional bond property to link together.
However, I dont get the right result.
I would appreciate if someone gives me an idea.

Thanks in advance

this.isChangagle = function () {
return $'currentPage');

this.updateResultsFromJson = function () {
$ = vm.pagination.currentPage;
var start = (vm.pagination.currentPage - 1) * $;
var end = vm.pagination.currentPage * $;
vm.results = vm.jsonData.slice(start, end);


Submitted by antoine.mottier on Mon, 09/30/2019 - 13:29

Is it possible for you to share (using Google Drive, Dropbox...) your custom widget? I will give it a try and try to figure out how to handle properly the pagination.

No answers yet.