PhoenixKitProjects.Web.Components.DayPopupModal (PhoenixKitProjects v0.18.0)

Copy Markdown View Source

<.day_popup_modal> — the whole-day popup both calendars share.

Kept in the DOM (keep_in_dom) so PkDialogTrigger can open it in the same frame as a day-cell / "+N more" click; the body renders a skeleton until the server round-trip fills day_popup, then one row per event scheduled that day (color dot, title, optional subtitle, late badge, status badge).

The owning LiveView supplies normalized rows (%{value:, title:, color:, subtitle:, late:, status:}) plus the row_click event its rows push (phx-value-uuid={row.value}), and must handle "close_day_popup".

Summary

Functions

day_popup_modal(assigns)

Attributes

  • id (:string) (required) - modal DOM id (unique per page/embed).
  • day_popup (:any) (required) - nil (closed / skeleton) | %{date: Date.t(), rows: [row]}.

  • row_click (:string) (required) - event a row click pushes; the row's :value rides phx-value-uuid.