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

Method nextClicked

src/material/datepicker/calendar.ts:126–136  ·  view source on GitHub ↗

Handles user clicks on the next button.

()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 3

nextEnabledMethod · 0.95
addCalendarMonthsMethod · 0.45
addCalendarYearsMethod · 0.45

Tested by

no test coverage detected