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

Method previousEnabled

src/material/datepicker/calendar.ts:139–146  ·  view source on GitHub ↗

Whether the previous period button is enabled.

()

Source from the content-addressed store, hash-verified

137
138 /** Whether the previous period button is enabled. */
139 previousEnabled(): boolean {
140 if (!this.calendar.minDate) {
141 return true;
142 }
143 return (
144 !this.calendar.minDate || !this._isSameView(this.calendar.activeDate, this.calendar.minDate)
145 );
146 }
147
148 /** Whether the next period button is enabled. */
149 nextEnabled(): boolean {

Callers 1

previousClickedMethod · 0.95

Calls 1

_isSameViewMethod · 0.95

Tested by

no test coverage detected