$('#abc').pagination({
pageSize: 10,
dataSource: this.props.appContext+'/admin/api/modelType/page?pageNumber=2&pageSize=2',
//how can i set totalNumber from a responce data, not a hardcoded value?
totalNumber: 19
}
i cannot know the number before initialization. Is there any other way to make it work without providing hardcode value or array?
Of cause if i try to locate the pages quanity number with
locator: 'totalPages' it says totalPages is not an array.
from the server i receive nex data:
my pagination configs:
i cannot know the number before initialization. Is there any other way to make it work without providing hardcode value or array?
Of cause if i try to locate the pages quanity number with
locator: 'totalPages'
it says totalPages is not an array.here is more explanation https://stackoverflow.com/questions/58200331/how-set-pages-number-gotten-from-responce-as-a-number-not-as-array-in-paginatio
Thanks