首页 > 解决方案 > 使用 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&param=" + 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&param=" + 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>

文件制作者配置:

在此处输入图像描述

标签: javascriptfullcalendarfilemakerfullcalendar-3

解决方案


开盘日期:必须去掉参数

  defaultDate: '**Data2** 

如果默认不填,则为本地显示当前日期,只需输入

local:"fr",

“fr”或“en”或其他语言

我希望我的答案不会太晚


推荐阅读