CalendarEvent

data class CalendarEvent<out T>(val id: String, val title: String, val span: EventSpan, val subtitle: String? = null, val colorArgb: Long? = null, val payload: T? = null)

Minimal, optional calendar event model shared across DayDecorators, Agenda, and the time-grid schedule views (#21).

Type Parameters

T

Optional caller-owned domain payload for click handling or custom slots.

Constructors

Link copied to clipboard
constructor(id: String, title: String, span: EventSpan, subtitle: String? = null, colorArgb: Long? = null, payload: T? = null)

Properties

Link copied to clipboard

Optional 0xAARRGGBB color hint (UI-agnostic in orrery-core).

Link copied to clipboard
val id: String

Stable identifier used as a Compose lazy-list/grid key and tie-breaker.

Link copied to clipboard
val payload: T?

Optional domain object attached by the consumer.

Link copied to clipboard
Link copied to clipboard

Optional secondary text (location, room, summary).

Link copied to clipboard

Primary display title.

Functions

Link copied to clipboard
fun occursOn(date: LocalDate): Boolean

True if this event covers any part of date.