Skip to content

add events #369

@its-danny

Description

@its-danny

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
// etc

So 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.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions