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

Method _shouldEnableDate

src/material/datepicker/month-view.ts:550–557  ·  view source on GitHub ↗

Date filter for the month

(date: D)

Source from the content-addressed store, hash-verified

548
549 /** Date filter for the month */
550 private _shouldEnableDate(date: D): boolean {
551 return (
552 !!date &&
553 (!this.minDate || this._dateAdapter.compareDate(date, this.minDate) >= 0) &&
554 (!this.maxDate || this._dateAdapter.compareDate(date, this.maxDate) <= 0) &&
555 (!this.dateFilter || this.dateFilter(date))
556 );
557 }
558
559 /**
560 * Gets the date in this month that the given Date falls on.

Callers 1

_createWeekCellsMethod · 0.95

Calls 2

compareDateMethod · 0.80
dateFilterMethod · 0.45

Tested by

no test coverage detected