Announcement

Collapse
No announcement yet.

Customize Calendar: Week Numbers

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Customize Calendar: Week Numbers

    Hi,
    i use the Calendar App in one of my Application and want to show Weeknumbers in my calendar. I found the code to do this in Fullcalendar (the one SC uses):
    Code:
    document.addEventListener('DOMContentLoaded', function() {
      var calendarEl = document.getElementById('calendar');
    
      var calendar = new FullCalendar.Calendar(calendarEl, {
        plugins: [ 'dayGrid' ],
        defaultView: 'dayGridMonth',
        weekNumbers: true
      });
    
      calendar.render();
    });
    Is there a way to customize the FullCalendar (there are a lot of other options available)?
    Thanks for your help. I wish everyone a happy 2020!
    Best regards
    Steve

  • #2
    Is this code already working?

    Comment

    Working...
    X