4

I have additional data (in my case its a number) which is obtained via a javascript function - which i would like to display within each day's cell.

so for example - if the day number is in the top right corner, i would like this displayed in the top left - automatically for each day.

I see there is the dayRender method, which seems exactly what i need. but i am not sure of the syntax to add the text, and define the location.

something like this fails (obviously..):

... //// within  $('#calendar').fullCalendar({

        dayRender: function (date, cell) {
            var cellYear = date.getFullYear();
            var cellMonth = date.getMonth() + 1;
            var cellDay = date.getDate();

            cell.html(ReturnCellNumber(cellDay,cellMonth,cellYear));

        },

thanks!

1 Answer 1

7

for future generations.... this is what can be done:

cell.prepend('<span class="selector">' + ReturnCellNumber(cellDay,cellMonth,cellYear) + '</span>');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.