PhoenixLiveCalendar.Views.NDayView (PhoenixLiveCalendar v0.1.0)

Copy Markdown View Source

N-day view — shows an arbitrary number of day columns.

This is the flexible view that handles 3-day, 4-day, 10-day, or any custom day count. Uses WeekGrid internally with computed dates.

Summary

Functions

Renders an N-day time grid view.

Functions

n_day_view(assigns)

Renders an N-day time grid view.

Attributes

  • date — Start date of the view
  • days — Number of days to display
  • All other attributes are passed through to WeekGrid.week_grid/1

Attributes

  • date (Date) (required)
  • days (:integer) (required)
  • events (:list) - Defaults to [].
  • selected_date (Date) - Defaults to nil.
  • today (Date) - Defaults to nil.
  • min_time (Time) - Defaults to ~T[00:00:00].
  • max_time (Time) - Defaults to ~T[23:59:59].
  • slot_duration (:integer) - Defaults to 30.
  • slot_height (:string) - Defaults to "3rem".
  • show_now_indicator (:boolean) - Defaults to true.
  • show_all_day_row (:boolean) - Defaults to true.
  • business_hours (:list) - Defaults to [].
  • on_date_click (:any) - Defaults to nil.
  • on_time_click (:any) - Defaults to nil.
  • on_event_click (:any) - Defaults to nil.
  • translations (:map) - Defaults to %{}.
  • time_format (:atom) - Defaults to :h24.
  • class (:string) - Defaults to "".
  • dir (:atom) - Defaults to :ltr.

Slots

  • event
  • time_label