Pair of (column index, ascending)
Pair of (column index, ascending)
The total number of items
The total number of items
The sort headers: pairs of column labels, and column identifier objects of type C.
The sort headers: pairs of column labels, and column identifier objects of type C.
The items displayed on the current page
The items displayed on the current page
This method is called before the new page is served, to set up the state in advance.
This method is called before the new page is served, to set up the state in advance. It is implemented by StatefulSnippet so you can just mix in StatefulSortedPaginatorSnippet to one; or you can implement it yourself, using things like S.mapSnippet.
The URL query parameter to specify the sort direction
The URL query parameter to specify the sort direction
Calculates the current page number, based on the value of 'first.
Calculates the current page number, based on the value of 'first.'
The status displayed when using <nav:records/> in the template.
The status displayed when using <nav:records/> in the template.
Overrides the super's implementation so the first record can be overridden by a URL query parameter.
Overrides the super's implementation so the first record can be overridden by a URL query parameter.
The "first page" link text
The "first page" link text
Sets the default starting record of the page (URL query parameters take precedence over this)
Sets the default starting record of the page (URL query parameters take precedence over this)
How many items to put on each page
How many items to put on each page
The "last page" link text
The "last page" link text
The template prefix for general navigation components
The template prefix for general navigation components
The "next page" link text
The "next page" link text
Calculates the number of pages the items will be spread across
Calculates the number of pages the items will be spread across
The URL query parameter to propagate the record the page should start at
The URL query parameter to propagate the record the page should start at
Overrides pageUrl and delegates to sortedPageUrl using the current sort
Overrides pageUrl and delegates to sortedPageUrl using the current sort
Returns XML that links to a page starting at the given record offset, if the offset is valid and not the current one.
Returns XML that links to a page starting at the given record offset, if the offset is valid and not the current one.
The link text, if the offset is valid and not the current offset; or, if that is not the case, the static unlinked text to display
Generates links to multiple pages with arbitrary XML delimiting them.
Generates links to multiple pages with arbitrary XML delimiting them.
This is the snippet method, which you can reference in your template or call directly.
This is the snippet method, which you can reference in your template or call directly.
The "previous page" link text
The "previous page" link text
How to display the page's starting record
How to display the page's starting record
How to display the page's ending record
How to display the page's ending record
Overrides sort, giving the URL query parameters precedence
Overrides sort, giving the URL query parameters precedence
The URL query parameter to specify the sort column
The URL query parameter to specify the sort column
The prefix to bind the sorting column headers
The prefix to bind the sorting column headers
Set the current sort state: Pair of (column index, ascending?)
Set the current sort state: Pair of (column index, ascending?)
Returns a new SortState based on a column index.
Returns a new SortState based on a column index. If the paginator is already sorted by that column, it toggles the direction; otherwise the direction is ascending. Note that this method does not alter the sort state in the paginator; it only calculates the direction toggle. Example usage: sortedPaginator.sort = sortedPaginator.sortedBy(columns.indexOf(clickedColumn))
Overrides to use Lift state rather than URL query parameters.
Overrides to use Lift state rather than URL query parameters.
Returns a list of page numbers to be displayed in 'zoomed' mode, i.
Returns a list of page numbers to be displayed in 'zoomed' mode, i.e., as the page numbers get further from the current page, they are more sparse.
Sort your paginated views by using lifts functions mapping. The only down side with this style is that your links are session specific and non-bookmarkable. If you mix this trait in to a StatefulSnippet, it should work out the box. Otherwise, implement 'registerThisSnippet.'