Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add events #369

Open
its-danny opened this issue Jan 2, 2022 · 1 comment
Open

add events #369

its-danny opened this issue Jan 2, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request maybe

Comments

@its-danny
Copy link
Collaborator

its-danny commented Jan 2, 2022

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.

@its-danny its-danny added the enhancement New feature or request label Jan 2, 2022
@its-danny its-danny self-assigned this Jan 2, 2022
@its-danny its-danny added the maybe label Jan 2, 2022
@wibed
Copy link

wibed commented Jan 19, 2023

#496

i think i have cooked up something in this direction
:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maybe
Projects
None yet
Development

No branches or pull requests

2 participants