Usage
The pager bar expects the following bindings (optional bindings are noted in the object):
PagerBarBindings = { currentPage: '<', isPageInformationVisible: '<?', isPagerVisible: '<?', itemsPerPage: '<', numberOfItems: '<', maximumSlots: '<?', pageSelected: '&' };
For the pager bindings, consult the component source code.
Interaction
Pager and Pager Bar instances are seemingly stateful, but in fact are presentational components. Because typical use cases for Pagers coincide with paged API results, we rely on application state (redux store) to be the source of truth for current results status rather than internal Pager state. As such, all page size, etc., calculations will be found elsewhere (most likely in reducers or selectors).
The presentational nature of Pager components means that click actions are provided to the component as callback functions from the parent controller. See current usage examples in the invision-customercare module for full context.