Refactors navigation event handling and payload
Updates navigation button event emission to use a more consistent payload type Simplifies navigation logic by centralizing date navigation in NavigationManager Removes redundant method implementations and standardizes event handling
This commit is contained in:
parent
a666a632bd
commit
5075b71eb2
3 changed files with 42 additions and 96 deletions
|
|
@ -97,4 +97,10 @@ export interface IResizeEndEventPayload {
|
|||
eventId: string;
|
||||
element: HTMLElement;
|
||||
finalHeight: number;
|
||||
}
|
||||
|
||||
// Navigation button clicked event payload
|
||||
export interface INavButtonClickedEventPayload {
|
||||
direction: 'next' | 'previous' | 'today';
|
||||
newDate: Date;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue