Refactor calendar navigation to use event bus
Decouples calendar navigation from direct DOM events Adds new event constants for calendar navigation commands Updates CalendarApp to handle navigation via event bus Simplifies navigation logic and improves event-driven architecture
This commit is contained in:
parent
8161b3c42a
commit
3710bb50c0
3 changed files with 34 additions and 19 deletions
|
|
@ -67,5 +67,9 @@ export const CoreEvents = {
|
|||
AUDIT_LOGGED: 'audit:logged',
|
||||
|
||||
// Rendering events
|
||||
EVENTS_RENDERED: 'events:rendered'
|
||||
EVENTS_RENDERED: 'events:rendered',
|
||||
|
||||
// Calendar command events
|
||||
CALENDAR_CMD_NAVIGATE_PREV: 'calendar:cmd:navigate:prev',
|
||||
CALENDAR_CMD_NAVIGATE_NEXT: 'calendar:cmd:navigate:next'
|
||||
} as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue