Skip to content
Advertisement

FullCalendar 5 – How to show a coloured dot to the left of events in initialView: ‘timeGridWeek’ instead of solid fill

When I set the FullCalendar to:

JavaScript

The Events are shown with coloured dots instead of solid fill (this is what I want). However, when I set the FullCalendar to:

JavaScript

the Events appear as solid fill. How can I correct this please (i.e., show a coloured dot to the left of each Event)?

My code is:

JavaScript

I have added the following from Kibé M.C:

JavaScript

I also tried:

JavaScript

However the dot is not picking up the ‘red’ from borderColor and the text drops out of the border:

enter image description here

Also, the ‘month’ and ‘list’ views have two dots:

enter image description here

Advertisement

Answer

You can use eventDidMount

JavaScript

UPDATE You should only see one dot.

Send a screenshot of the two dots so I try debugging the issue

You can add CSS to define a fixed size

To have dynamic colors on the dot, you can simply do this:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement