javascript - 使用 fullcalendar 在 Filemaker 中更改设置数据的位置?
问题描述
我在 Filemaker DB 中使用 fullCalendar`,并且我已经学会了如何将我自己的数据用于日历,以及如何构建脚本来添加事件。
现在我想更改日历布局中的某些内容。例如,我想使用 locale data it-IT
。
另一个问题是,即使存储了当前数据,当我打开日历时它会转到四月的一天(我们现在是十二月!)。
我不知道去哪里更改日历设置,我不知道在哪里更改我在日历文档中看到的设置。
附加了一个可以找到任何设置的布局,但我找不到"locale"
例如更改国际设置。
希望我解释得对,谢谢。
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay,listWeek'
},
height:800,
defaultView: 'agendaWeek',
eventColor: '**Data3**',
allDaySlot: true,
minTime: '8:00:00',
maxTime: '21:00:00',
weekends:true,
businessHours: true,
businessHours: {
start: '08:00', // a start time (10am in this example)
end: '19:00', // an end time (6pm in this example)
dow: [ 1, 2, 3, 4, 5 ] // days of week. an array of zero-based day of week integers (0=Sunday)
// (Monday-Thursday in this example)
},
firstDay: 1,
allDaySlot:true,
allDayText: "all day",
defaultDate: '**Data2**',
slotDuration: '00:15:00',
slotLabelInterval: '00:30:00',
slotLabelFormat: 'hh:mm',
eventLimit: true, // allow "more" link when too many events
events: [
**Data1**
],
editable: true,
eventResize: function( event, delta, revertFunc) {
var id = event.id;
var start = event.start.format();
var end = event.end.format();
var theList = [id,start,end];
var doThis = "fmp://$/**FileName**?script=updateAppointment¶m=" + theList;
window.location = doThis;
},
eventDrop: function(event, delta, revertFunc) {
var id = event.id;
var start = event.start.format();
var end = event.end.format();
var theList = [id,start,end];
var doThis = "fmp://$/**FileName**?script=updateAppointment¶m=" + theList;
window.location = doThis;
}
});
});
我试过这个但不起作用:
$(document).ready(function() {
$('#calendar').fullCalendar({
locale: 'it',
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay,listWeek'
},
height:800,
defaultView: 'agendaWeek',
eventColor: '**Data3**',
allDaySlot: true,
minTime: '8:00:00',
maxTime: '21:00:00',
weekends:true,
businessHours: true,
businessHours: {
这是我添加脚本 fullcalendar/fullcalendar.js 的 HTML 字段:
<!doctype html>
<html>
<head>
<meta charset='utf-8' />
<style> **CSS1** </style>
<style>**CSS2** </style>
</head>
<body>
<div id='calendar'></div>
</body>
<script>**jQueryMin**</script>
<script>**JS2** </script>
<script>**JS1**</script>
<script> **JSFunction**</script>
<script>**fullcalendar/fullcalendar.js**</script>
</html>
文件制作者配置:
解决方案
开盘日期:必须去掉参数
defaultDate: '**Data2**
如果默认不填,则为本地显示当前日期,只需输入
local:"fr",
“fr”或“en”或其他语言
我希望我的答案不会太晚
推荐阅读
- qt - QML`MapGestureArea`,我怎样才能在`onRotationFinished`上获得旋转角度
- javascript - 为什么我不能使用观察数组变化的方法来观察节点变化,除非我使用变异观察者?
- python - 如何从文本文件中读取测试项目并在它们上运行 pytest
- python - 如何让 QTimer 在课堂上工作
- javascript - 在弹出窗口中实施身份验证时,快速会话 cookie 过期
- c - 动态链接库相互依赖时的链接顺序问题
- php - 在查询 Eloquent 字段中添加结果子查询
- rust - rust 按顺序组合相似的值
- c++ - 字符串:删除字符并将数字分成块
- python-3.x - 如何使用 Python Pandas 和 mysqlalchemy 更改表