Handles user clicks on the next button.
()
| 124 | |
| 125 | /** Handles user clicks on the next button. */ |
| 126 | nextClicked(): void { |
| 127 | if (this.nextEnabled()) { |
| 128 | this.calendar.activeDate = |
| 129 | this.calendar.currentView == 'month' |
| 130 | ? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, 1) |
| 131 | : this._dateAdapter.addCalendarYears( |
| 132 | this.calendar.activeDate, |
| 133 | this.calendar.currentView == 'year' ? 1 : yearsPerPage, |
| 134 | ); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | /** Whether the previous period button is enabled. */ |
| 139 | previousEnabled(): boolean { |
nothing calls this directly
no test coverage detected