-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
Description
You should be able to store and get events tied to dates. Something like:
Event<T = { [key: string]: any }> {
start: Date;
end: Date;
meta?: T;
}
addEvent(event: Event) => void
eventsFor(date: Date) => Event[]
hasEvents(date: Date) => boolean
// etcSo you'd just draw the calendar like this, and use eventsFor to list events for each hour block?
I'm not totally sure this is really a necessary feature, you could still use use-lilius for an event calendar without this.