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

Adding events to a calendar #1

Open
kipcole9 opened this issue Apr 5, 2020 · 0 comments
Open

Adding events to a calendar #1

kipcole9 opened this issue Apr 5, 2020 · 0 comments

Comments

@kipcole9
Copy link
Collaborator

kipcole9 commented Apr 5, 2020

In conversion with @dbernheisel the topic of adding events to a formatted calendar came up. It has been on the "to do" list for a while so this issue is to track design ideas.

My initial thoughts are:

Design goals

  1. An :events option can be passed to Cldr.Calendar.Format.{week, month, year}/2
  2. A module implementing the Cldr.Calendar.Formatter behaviour will would include a format_event/2 function which is passed an event and some options
  3. Events should be based upon icalendar. At least one parser/encoder exists from @lpil although I have not checked how much support for recurring events it has.

API idea

iex> Cldr.Calendar.Format.month 2020, 4, locale: "en-US", events: icalendar_events, formatter: MySpecial.Formatter

Things to think about

  • Keeping multi-day events lined up in the right place in adjacent days
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant