HomeDevCentral

Pager (PhabricatorPagerUIExample)

Use PHUIPagerView to create a control which allows users to paginate through large amounts of content.

Example

Item
Item #101
Item #102
Item #103
Item #104
Item #105
Item #106
Item #107
Item #108
Item #109
Item #110
Item #111
Item #112
Item #113
Item #114
Item #115
Item #116
Item #117
Item #118
Item #119
Item #120

Use PHUIPagerView to render a pager element.

You can show more or fewer pages of surrounding context.

When it is prohibitively expensive or complex to attain a complete count of the items, you can select one extra item and set hasMorePages(true) if it exists, creating an inexact pager.