Refactor data source and configuration management
Abstracts column data source with interface Updates managers to use configuration-driven view and date Decouples datasource creation from individual managers Improves flexibility and dependency injection for calendar components
This commit is contained in:
parent
0f10d44037
commit
9d270217bd
6 changed files with 31 additions and 17 deletions
|
|
@ -19,14 +19,12 @@ export class DateColumnDataSource implements IColumnDataSource {
|
|||
|
||||
constructor(
|
||||
dateService: DateService,
|
||||
config: Configuration,
|
||||
currentDate: Date,
|
||||
currentView: CalendarView
|
||||
config: Configuration
|
||||
) {
|
||||
this.dateService = dateService;
|
||||
this.config = config;
|
||||
this.currentDate = currentDate;
|
||||
this.currentView = currentView;
|
||||
this.currentDate = new Date();
|
||||
this.currentView = this.config.currentView;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue