0

I try to display week numbers but nothing happens

I put weeknumber in the javascript file

$(document).ready(function() {

    $('#calendar').fullCalendar({

                    weekNumbers: true,
                    height:400,
        header: {

            left: 'prev,next today, save',
            center: 'title',
            right: 'month,agendaWeek,agendaDay,agendaFourDay'
        },

                   'defaultView': 'month',
        editable: true,
       .....

what is this problem ?

Patrice
  • 209
  • 1
  • 4
  • 15

1 Answers1

0

Did you import necessary CSS and js for it ?

<link rel='stylesheet' href='fullcalendar/fullcalendar.css' />
<script src='lib/jquery.min.js'></script>
<script src='lib/moment.min.js'></script>
<script src='fullcalendar/fullcalendar.js'></script>

moreover

weekNumbers:

If set to true, week numbers will be displayed in a separate left column in the month/basic views as well as at the top-left corner of the agenda views. See Available views

Kishan Mehta
  • 2,598
  • 5
  • 39
  • 61