Pager (PhabricatorPagerUIExample)

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

Example

Item
Item #41
Item #42
Item #43
Item #44
Item #45
Item #46
Item #47
Item #48
Item #49
Item #50
Item #51
Item #52
Item #53
Item #54
Item #55
Item #56
Item #57
Item #58
Item #59
Item #60

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.