Raj*_*kam 5 javascript jquery fullcalendar
我的全日历的默认视图是月份,我想在按钮外部按钮单击上更改月份的视图。我想知道是否有任何内置功能可以在单击按钮时更改它。
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2014-06-12',
defaultView: 'month',
editable: true,
events: [
{
title: 'All Day Event',
start: '2014-06-01'
},
{
title: 'Long Event',
start: '2014-06-07',
end: '2014-06-10'
},
{
id: 999,
title: 'Repeating Event',
start: '2014-06-09T16:00:00'
},
{
id: 999,
title: 'Repeating Event',
start: '2014-06-16T16:00:00'
},
{
title: 'Meeting',
start: '2014-06-12T10:30:00',
end: '2014-06-12T12:30:00'
},
{
title: 'Lunch',
start: '2014-06-12T12:00:00'
},
{
title: 'Birthday Party',
start: '2014-06-13T07:00:00'
},
{
title: 'Click for Google',
url: 'http://google.com/',
start: '2014-06-28'
}
]
});
});
Run Code Online (Sandbox Code Playgroud)
http://fullcalendar.io/docs/views/changeView/
$('#calendar').fullCalendar( 'changeView', 'agendaDay');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12151 次 |
| 最近记录: |