PhoenixLiveCalendar.Views.DayView (PhoenixLiveCalendar v0.1.0)

Copy Markdown View Source

Day view — a single-column time grid. Delegates to WeekGrid with one date.

Summary

Functions

Renders a single-day time grid view.

Functions

day_view(assigns)

Renders a single-day time grid view.

Accepts the same attributes as WeekGrid.week_grid/1, but takes a single date instead of a dates list.

Attributes

  • date (Date) (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