Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

327
Vistas
Why does setting backgroundColor on a fullcalendar event just change the dot color instead of setting the background color?

UPDATE

The items appear with the dot and not the background color because they're built with a time of day on them. Remove the time so that start is just the date (ie. 2021-12-07), then they get the background color correctly as expected so the question now becomes how to get the background color even with the time of day on them...


Referencing

  • change the background color of the events in FullCalendar, and
  • https://fullcalendar.io/docs/eventBackgroundColor

I've added backgroundColor values to my events, but this only seems to change the dot on the events:

enter image description here

You'll notice that using extendedProps to set the background color doesn't work either.

I'm trying to get the event to appear in a block of the given color similar to this: enter image description here

Here's my events array; how can I get fullcalendar to change the background color on the event?

events: [
    {
        title: 'event1',
        start: '2021-12-07T08:00:00',
        backgroundColor: '#ff00ff'
    },
    {
        title: 'event3',
        start: '2021-12-07T09:00:00',
        backgroundColor: '#4d96f1'
    },
    {
        title: 'event2',
        start: '2021-12-08T08:00:00',
        backgroundColor: '#00ff00',
        extendedProps: {
            backgroundColor: '#00ff00'
        },
    }
],
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can also keep the timed events aspect but showing them as the same way as in all day by just adding eventDisplay:'block', in your Fullcalendar's parameters.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda