Refactors all-day event rendering and DOM access
Decouples all-day event rendering, making it reactive to header readiness with period data. Eliminates explicit DOM element caching, simplifying element access. Enhances the `header:ready` event payload with `startDate` and `endDate`. Improves all-day row height animation and calculation.
This commit is contained in:
parent
f5e9909935
commit
6498b0ba8e
6 changed files with 98 additions and 116 deletions
|
|
@ -85,4 +85,12 @@ export interface DragMouseLeaveHeaderEventPayload {
|
|||
mousePosition: MousePosition;
|
||||
originalElement: HTMLElement| null;
|
||||
cloneElement: HTMLElement| null;
|
||||
}
|
||||
|
||||
// Header ready event payload
|
||||
export interface HeaderReadyEventPayload {
|
||||
headerElement: HTMLElement;
|
||||
startDate: Date;
|
||||
endDate: Date;
|
||||
isNavigation?: boolean;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue