DateRangeEditorComponent constructor
DateRangeEditorComponent(
- Element _elementRef,
- DomService _domService,
- NgZone _ngZone,
- @Optional() DateRangeEditorHost? editorHost,
- @Optional() @Inject(datepickerClock) Clock? clock,
- Clock legacyClock,
Implementation
DateRangeEditorComponent(
this._elementRef,
this._domService,
this._ngZone,
@Optional() DateRangeEditorHost? editorHost,
@Optional() @Inject(datepickerClock) Clock? clock,
Clock legacyClock) {
// TODO(google): Migrate to use only datepickerClock
_clock ??= legacyClock;
_today = Date.today(_clock);
editorHost?.dateRangeEditorCreated(this);
nextPrevModel = DateRangeEditorNextPrevModel(onNext: () {
calendarPicker?.scrollToDate(_visibleMonth!.add(months: 1));
}, onPrev: () {
calendarPicker?.scrollToDate(_visibleMonth!.add(months: -1));
});
}