PhoenixLiveCalendar.Components.EventPopover (PhoenixLiveCalendar v0.1.0)

Copy Markdown View Source

A popover/tooltip component for displaying event details on click or hover.

Can be used standalone or integrated with the calendar views.

Summary

Functions

Renders an event detail popover.

Functions

event_popover(assigns)

Renders an event detail popover.

Attributes

  • event — The event to display details for
  • show — Whether the popover is visible (default: false)
  • on_close — Event handler to close the popover
  • on_edit — Optional edit handler
  • on_delete — Optional delete handler
  • time_format:h24 or :h12 (default: :h24)
  • class — Additional CSS classes

Slots

  • inner_block — Custom popover content. Receives the event.
  • actions — Custom action buttons

Attributes

  • event (PhoenixLiveCalendar.Event) - Defaults to nil.
  • show (:boolean) - Defaults to false.
  • on_close (:any) - Defaults to nil.
  • on_edit (:any) - Defaults to nil.
  • on_delete (:any) - Defaults to nil.
  • time_format (:atom) - Defaults to :h24.
  • class (:string) - Defaults to "".

Slots

  • inner_block
  • actions