* Modifies timestamp by a given amount of months and, * if necessary, loads the prev/next page. * @param amount * @param preserveDate whether to preserve the day of the month (f.e. 15th of March + 1 month = 15th of April) * @private
(amount: number, preserveDate?: boolean)
| 347 | * @private |
| 348 | */ |
| 349 | _modifyTimestampBy(amount: number, preserveDate?: boolean) { |
| 350 | // Modify the current timestamp |
| 351 | this._safelyModifyTimestampBy(amount, "month", preserveDate); |
| 352 | this._updateSecondTimestamp(); |
| 353 | |
| 354 | // Notify the calendar to update its timestamp |
| 355 | this.fireDecoratorEvent("navigate", { timestamp: this.timestamp! }); |
| 356 | } |
| 357 | |
| 358 | _onkeyup(e: KeyboardEvent) { |
| 359 | if (isSpace(e)) { |
no test coverage detected