HomeDevCentral

Pager (PhabricatorPagerUIExample)

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

Example

Item
Item #141
Item #142
Item #143
Item #144
Item #145
Item #146
Item #147
Item #148
Item #149
Item #150
Item #151
Item #152
Item #153
Item #154
Item #155
Item #156
Item #157
Item #158
Item #159
Item #160

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.