Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

330
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda