* Modifies timestamp by a given amount of year ranges and, if necessary, loads the prev/next page. * @param amount * @private
(amount: number)
| 487 | * @private |
| 488 | */ |
| 489 | _modifyTimestampBy(amount: number) { |
| 490 | // Modify the current timestamp |
| 491 | const amountInYears = amount * this._getRangeSize(); |
| 492 | this._safelyModifyTimestampBy(amountInYears, "year"); |
| 493 | |
| 494 | // Notify the calendar to update its timestamp |
| 495 | this.fireDecoratorEvent("navigate", { timestamp: this.timestamp! }); |
| 496 | } |
| 497 | |
| 498 | _modifyGridStartBy(years: number) { |
| 499 | this._gridStartYear! += years; |
no test coverage detected