Pagination organizes and divides large amounts of content on separate pages and gives the user control over how much content they want to view on each page.
import { DaffPaginatorComponent } from '@daffodil/design/paginator'
@Component()
class DaffPaginatorComponent implements OnChanges {
@Input() numberOfPages: number
@Input() currentPage: number
@Input() linkMode: boolean = false
@Input() url: string
@Input() queryParam: string = 'page'
@Output() notifyPageChange: EventEmitter<any> = new EventEmitter()
}
number| Default | – |
|---|---|
| Description | The total number of pages the paginator tracks. This number can change dynamically, but the end user is responsible for keeping For example, if the |
number| Default | – |
|---|---|
| Description | The currently selected page. |
boolean| Default | false |
|---|---|
| Description | Replace the paginator buttons with links. |
string| Default | – |
|---|---|
| Description | The url to which to navigate if the paginator is in link mode. This paginator component will set the page query param. |
string| Default | 'page' |
|---|---|
| Description | The query param to which the paginator component will set the current page value in link mode. |
EventEmitter| Default | – |
|---|---|
| Description | Emits when the current page changes with the new current page. |
import { DaffPaginatorModule } from '@daffodil/design/paginator'
@NgModule()
class DaffPaginatorModule {}