当我想在Grails中实现fullcalendar时遇到问题,这里的文档:我认为http://grails.org/plugin/full-calendar不是很完整..
我应该在哪里保存/保存:
<fullcal:calendar id="cal">
header: { left: "", center: "", right: "prev, today, next" },
columnFormat: { week: 'ddd d/M' },
timeFormat: 'HH:mm{ - HH:mm}'
</fullcal:calendar>
有人可以一步一步告诉我吗?谢谢:))
答案 0 :(得分:0)
grails install-plugin full-calendar
调用此插件并在gsp中标记fullcalander,如下所示:
<fullcal:resources/> // you don't need settings inside we will use jquery below
您想要使用jquery或使用标签的准备和设置值,请参阅2
$('#calendar').fullCalendar({
// put your options and callbacks here
weekends: false // will hide Saturdays and Sundays
})
});
<fullcal:calendar id="cal">
header: { left: "", center: "", right: "prev, today, next" },
columnFormat: { week: 'ddd d/M' },
timeFormat: 'HH:mm{ - HH:mm}'
</fullcal:calendar>
params.cal