MCPcopy Create free account
hub / github.com/angular/components / previousClicked

Method previousClicked

src/material/datepicker/calendar.ts:113–123  ·  view source on GitHub ↗

Handles user clicks on the previous button.

()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

previousEnabledMethod · 0.95
addCalendarMonthsMethod · 0.45
addCalendarYearsMethod · 0.45

Tested by

no test coverage detected