更改EventObject字段的名称

时间:2016-10-20 09:54:59

标签: fullcalendar

是否有可能为事件标题设置特定的字段名称? e.g。

$('#calendar').fullCalendar({
    events: [
        {
            name  : 'event1', //instead of 'title'
            start_date  : '2010-01-01' //instead of 'start'
        }
    ]
});

1 个答案:

答案 0 :(得分:0)

Your Event Object will have standard fields and see here at the bottom of the page. You can have any additional non-standard fields. So you could add a name field but you would still need a title field as it is required.

In addition to the fields above, you may also include your own non-standard fields in each Event Object. FullCalendar will not modify or delete these fields. For example, developers often include a description field for use in callbacks such as eventRender.

You also have the option to set a custom name for the startParam, endParam and timezoneParam. So you can use these to change your start and end to start_date and end_date.