HomeDevCentral

Pager (PhabricatorPagerUIExample)

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

Example

Item
Item #61
Item #62
Item #63
Item #64
Item #65
Item #66
Item #67
Item #68
Item #69
Item #70
Item #71
Item #72
Item #73
Item #74
Item #75
Item #76
Item #77
Item #78
Item #79
Item #80

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.