开发者

How to display current date using full calendar

开发者 https://www.devze.com 2023-03-28 16:40 出处:网络
I am new to jquery. I am using full calendar for showing events for a month. However I am unable to display current date above the calendar as shown in various example.

I am new to jquery. I am using full calendar for showing events for a month. However I am unable to display current date above the calendar as shown in various example.

Below is my code:

$(document).ready(function () {     
    $('#calendar').fullCalendar({
        defaultView: 'month',
        editable: false,
        eventSources: [
            {
                url: '/Admin/AjaxRequest/CalendarDate/',
                type: 'POST',
                data: {
                    start: '0',
                    end: '0',
                    id:id
                },开发者_开发技巧
            },
        ]
    });
});


Titleformat and Header documentations have all the answers you need.

Set a header where you specify where you want your title and then specify in titleformat how you want this title to be displayed.

Answering this even though @Xaerxess point in the comment is valid..

0

精彩评论

暂无评论...
验证码 换一张
取 消