@htmlbricks/hb-calendar-appointments
Version:
Month agenda view: events for the current month are grouped by calendar day and listed chronologically with weekday, day number, time, and colored markers. Optional header with month navigation; changing month or selecting a day dispatches `changeCalendar
22 lines (20 loc) • 392 B
TypeScript
export interface IEvent {
date: Date;
label: string;
id: string;
link?: string;
icon?: string;
color?: string;
}
export type Component = {
id?: string;
date?: Date;
events?: IEvent[];
selected?: Date;
disable_header?: boolean;
};
export type Events = {
calendarEventClick: { eventId: string };
changeCalendarDate: { date: Date };
changeSelectedDate: { selectedDate: Date };
};