Skip to content

co-calendar-month

This content is not available in your language yet.

Fork de la cuadrícula de co-calendar con soporte para barras de eventos multi-día, arrastre a nivel de día y foco por teclado. Requiere year, month y time-zone. Los eventos se pasan CONTROLADOS por la propiedad JS events (un array): el arrastre emite una solicitud, no muta localmente. Normalmente se usa dentro de co-event-calendar, no de forma aislada.

Ver código
<co-calendar-month year="2026" month="6" time-zone="America/Bogota" locale="es-CO"></co-calendar-month>

Props

PropAtributoTipoDefaultDescripción
editableeditablebooleantrueMaster interaction gate.
eventsNormalizedEvent[][]Normalized events to render (from the engine's `normalizeEvents`).
firstDayOfWeekfirst-day-of-weeknumber1First day of week, 0=Sun..6=Sat.
localelocalestring'es-CO'BCP-47 locale for weekday labels.
maxDatemax-datestring | undefinedLatest interactable day "YYYY-MM-DD".
maxLanesmax-lanesnumber3Max event lanes per day before "+N more".
minDatemin-datestring | undefinedEarliest interactable day "YYYY-MM-DD" (gates select/drag — past-block).
monthmonthnumberMonth shown (1-12).
selectableselectablebooleantrueAllow empty-day click to request a create.
timeZonetime-zonestringIANA timezone used to place timed events on their wall-clock day.
yearyearnumberYear shown.

Eventos

EventoDetailBubblesCancelableDescripción
coDaySelect{ date: string; }Emitted when an empty day is selected (create request). Detail = "YYYY-MM-DD".
coEventClick{ id: string; }Emitted when an event chip is activated.
coEventDrop{ id: string; start: string; end: string; oldStart: string; oldEnd: string; allDay: boolean; }Emitted on a completed drag-move (day granularity).
coMoreClick{ date: string; }Emitted when the "+N more" affordance is activated.

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(grid)The month grid container

CSS Custom Properties

Este componente no expone CSS custom properties.