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

Method _goToDateInView

src/material/datepicker/calendar.ts:534–537  ·  view source on GitHub ↗

Handles year/month selection in the multi-year/year views.

(date: D, view: 'month' | 'year' | 'multi-year')

Source from the content-addressed store, hash-verified

532
533 /** Handles year/month selection in the multi-year/year views. */
534 _goToDateInView(date: D, view: 'month' | 'year' | 'multi-year'): void {
535 this.activeDate = date;
536 this.currentView = view;
537 }
538
539 /** Called when the user starts dragging to change a date range. */
540 _dragStarted(event: MatCalendarUserEvent<D>) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected