DaffPaginatorComponent

Selector: 'daff-paginator'

Properties

Name Type Description
@Input() numberOfPages number The total number of pages the paginator tracks. This number can change dynamically, but the end user is responsible for keeping numberOfPages and currentPage in sync. For example, if the numberOfPages is dynamically changed to a value less than the currentPage, the paginator will break.
@Input() currentPage number The currently selected page.
@Input() linkMode false Replace the paginator buttons with links. `url` is required if using this mode.
@Input() url string The url to which to navigate if the paginator is in link mode. This paginator component will set the page query param.
@Input() queryParam 'page' The query param to which the paginator component will set the current page value in link mode. @Output() notifyPageChange EventEmitter<any> Emits when the current page changes with the new current page. _buildPageQueryParams Params
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.