tmt.spry.pagingbar

tmt.spry.pagingbar is a Spry widget that must be associated to a Spry.Data.PagedView in order to automatically generate a "Paging Bar". See this page with several quick samples

In order to use this library you need tmt_spry_pagingbar.js plus SpryData.js and SpryPagedView.js from Spry

Samples

Syntax reference

tmt.spry.pagingbar.factory(pagedView, nodeId, options) Create an instance of the widget

Available arguments:
  1. pagedView. Name of the Spry.Data.PagedView that will be associated with this widget (required)
  2. nodeId. The id of the XHTML element that will contains the paging bar (required)
  3. options. An object containing name value pairs (optional)

Available options:

  • style. The way. links will be displayed. Either "links" or "pages". Default to "links"
  • prev. Text used for link. Default to "<"
  • next. Text used for link. Default to ">"
  • separator. String used to separate links. Default to " | "
  • maxlinks. Integer. Amount of links to show. Default to 20

Gotchas

The XHTML tag containing the pagingbar must be located outside any Spry's dynamic region