Skip to content

Instantly share code, notes, and snippets.

@vmencik
Created February 23, 2013 10:07
Show Gist options
  • Save vmencik/5019198 to your computer and use it in GitHub Desktop.
Save vmencik/5019198 to your computer and use it in GitHub Desktop.
Initialization of the Pagination instance before it is passed to a template.
object Pagination {
def apply[T](page: ListPage[T], pageSize: Int)(navi: Int => Call) =
new Pagination(page.totalCount, page.firstIndex, page.runover, pageSize)(navi)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment