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

Method previousClicked

src/dev-app/datepicker/datepicker-demo.ts:130–135  ·  view source on GitHub ↗
(mode: 'month' | 'year')

Source from the content-addressed store, hash-verified

128 }
129
130 previousClicked(mode: 'month' | 'year') {
131 this._calendar.activeDate =
132 mode === 'month'
133 ? this._dateAdapter.addCalendarMonths(this._calendar.activeDate, -1)
134 : this._dateAdapter.addCalendarYears(this._calendar.activeDate, -1);
135 }
136
137 nextClicked(mode: 'month' | 'year') {
138 this._calendar.activeDate =

Callers

nothing calls this directly

Calls 2

addCalendarMonthsMethod · 0.45
addCalendarYearsMethod · 0.45

Tested by

no test coverage detected