Calculate the number of pages
()
| 283 | |
| 284 | /** Calculate the number of pages */ |
| 285 | getNumberOfPages(): number { |
| 286 | if (!this.pageSize) { |
| 287 | return 0; |
| 288 | } |
| 289 | |
| 290 | return Math.ceil(this.length / this.pageSize); |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Changes the page size so that the first item displayed on the page will still be |
no outgoing calls
no test coverage detected