javascript - backbone.paginator - update per page -


i'm using backbone.paginator in project. have dropdown allows users select results per page. have figure out how make work :-)

so far if this:

this.collection.goto(page, {     data: {per_page: newresultsperpage} }); 

where newresultsperpage number of results user has selected dropdown. correct number of results come server, backbone.paginator doesn't correctly update number of pages. there method can call update / reset backbone.paginator plugin?

it looks there howmanyper method missed in documentation. i'll leave question else searching similar issue in future.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -