Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
How to add custom property field to fullcalendar v5

I'm trying to add custom field in calendar below title, it is not getting displayed, any help?

see example

my code:

 <link href='https://cdn.jsdelivr.net/npm/fullcalendar@5.9.0/main.min.css' rel='stylesheet' />
    <script src='https://cdn.jsdelivr.net/npm/fullcalendar@5.9.0/main.min.js'></script>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            var calendarEl = document.getElementById('calendar');
          

            var calendar = new FullCalendar.Calendar(calendarEl, {
                initialView: 'dayGridMonth',
                initialDate: '2021-08-17',
                headerToolbar: {
                    left: 'prev,next today',
                    center: 'title',
                    right: 'dayGridMonth,timeGridWeek,timeGridDay'
                },
                events: [{

                    title: 'Event',
                    name: 'John',
                    start: '2021-08-17'
                }]

            });

            calendar.render();
            
        });
    </script>
</head>
<body>
    <div id='calendar'></div>
</body>

</html>

In fullcalendar v3 working code:

$(document).ready(function() {

  $('#calendar').fullCalendar({
   events: [{
                    title: 'My Event',
                    name: 'John',
                    start: '2021-08-12T12:00:00'
                }],
    eventRender: function(event, element) {
      element.find('.fc-title').append(event.name);
    }
  });
});

in v5 eventRender was changed to eventDidMount, but when i'm trying use find method error appears.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I've used vanilla js and from event used extendedProps object which holds non-standart fields:

 events: [{

                    title: 'Event',
                    name: 'John',
                    start: '2021-08-17'
                }],

                eventDidMount: function(info) {
                    let name = document.createElement('div');
                    name.innerHTML=info.event.extendedProps.name;
                    document.querySelector('.fc-event-title-container').append(name);
                    
                }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!