开发者

How to display current date using full calendar

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜