React-big-calendar: Different color events

Created on 10 Oct 2018  路  1Comment  路  Source: jquense/react-big-calendar

How can I show events in different colors?

Most helpful comment

@eozbay use eventPropGetter:

<DragAndDropCalendar
  ...
  eventPropGetter={event => ({
    style: {
      backgroundColor: event.color,
    },
  })}
/>

>All comments

@eozbay use eventPropGetter:

<DragAndDropCalendar
  ...
  eventPropGetter={event => ({
    style: {
      backgroundColor: event.color,
    },
  })}
/>
Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicolasriccardi picture nicolasriccardi  路  3Comments

manutenfruits picture manutenfruits  路  3Comments

connercms picture connercms  路  3Comments

KatiaPosPago picture KatiaPosPago  路  3Comments

Hector26 picture Hector26  路  3Comments