Handles user clicks on the previous button.
()
| 111 | |
| 112 | /** Handles user clicks on the previous button. */ |
| 113 | previousClicked(): void { |
| 114 | if (this.previousEnabled()) { |
| 115 | this.calendar.activeDate = |
| 116 | this.calendar.currentView == 'month' |
| 117 | ? this._dateAdapter.addCalendarMonths(this.calendar.activeDate, -1) |
| 118 | : this._dateAdapter.addCalendarYears( |
| 119 | this.calendar.activeDate, |
| 120 | this.calendar.currentView == 'year' ? -1 : -yearsPerPage, |
| 121 | ); |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /** Handles user clicks on the next button. */ |
| 126 | nextClicked(): void { |
nothing calls this directly
no test coverage detected