Resource columns view — resources displayed as columns in a day/week time grid.
Each resource gets its own column. Used for side-by-side comparison of schedules (e.g., multiple practitioners, rooms, or equipment).
Summary
Functions
Renders a resource-column time grid.
Functions
Renders a resource-column time grid.
Attributes
date— The date to displayresources— List ofPhoenixLiveCalendar.Resourcestructs (one column each)events— List ofPhoenixLiveCalendar.Eventstructs (linked via resource_id)min_time— Earliest visible time (default:~T[00:00:00])max_time— Latest visible time (default:~T[23:59:59])slot_duration— Slot duration in minutes (default: 30)slot_height— CSS height per slot (default: "3rem")show_now_indicator— Show current time line (default: true)on_time_click— Handler for time slot clickson_event_click— Handler for event clickstranslations— Translation overridestime_format—:h24or:h12(default::h24)class— Additional CSS classes
Slots
event— Custom event renderingresource_header— Custom resource column header. Receives the resource.
Attributes
date(Date) (required)resources(:list) (required)events(:list) - Defaults to[].min_time(Time) - Defaults to~T[00:00:00].max_time(Time) - Defaults to~T[23:59:59].slot_duration(:integer) - Defaults to30.slot_height(:string) - Defaults to"3rem".show_now_indicator(:boolean) - Defaults totrue.on_time_click(:any) - Defaults tonil.on_event_click(:any) - Defaults tonil.translations(:map) - Defaults to%{}.time_format(:atom) - Defaults to:h24.class(:string) - Defaults to"".
Slots
eventresource_header