Skip to content
Discussion options

You must be logged in to vote

The interface is here:

export interface CalendarEvent {
[prop: string]: any
}

It's technically

interface CalendarEvent {
  start: number | string | Date
  end?: number | string | Date
  name?: string
  color?: string
}

but the keys for those can be modified with the eventStart, eventEnd, and eventName props.

color is actually the background color

Yeah this wasn't reviewed properly when it was added, these all seem pretty inconsistent. start/end/name work like you'd expect, with the corresponding event* prop either being a key to lookup or a function called on render. eventColor can also be …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@thany
Comment options

Answer selected by thany
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants