Enhances resource calendar support

Improves resource calendar mode by passing resource data
to the grid manager for rendering, enabling specific
resource-based views. Also, it stores raw event data
to improve data management.
This commit is contained in:
Janus Knudsen 2025-08-10 23:06:03 +02:00
parent b111f121ba
commit 0b46f68ac1
3 changed files with 28 additions and 2 deletions

View file

@ -114,6 +114,14 @@ export class GridManager {
this.setupGridInteractions();
}
/**
* Set resource data for resource calendar mode
*/
public setResourceData(resourceData: ResourceCalendarData | null): void {
this.resourceData = resourceData;
console.log('GridManager: Set resource data:', resourceData ? `${resourceData.resources.length} resources` : 'null');
}
/**
* Render the complete grid structure - now returns Promise for direct calls
*/