gpt4 book ai didi

javascript - 分机 : Unable to show data on calendar panel

转载 作者:行者123 更新时间:2023-11-30 11:18:33 24 4
gpt4 key购买 nike

我正在尝试将日历面板添加到 Web 应用程序。但我无法在日历上显示事件。

代码如下:

{
xtype: 'calendar',
layout: 'fit',
flex: 7,
align: 'stretch',
autoHeight: true,

views: {
day: {
startTime: 6,
endTime: 22
},
workweek: {
xtype: 'calendar-week',
titleTpl: '{start:date("j M")} - {end:date("j M")}',
label: 'Work Week',
weight: 15,
dayHeaderFormat: 'D d',
firstDayOfWeek: 1,
visibleDays: 5
}
},
timezoneOffset: 0
store: {
autoLoad: false,
proxy: {
type: 'ajax',
url: 'calendar.ext',
}
}

}

Ajax 调用返回以下数据:

    {

"Data": [
{
"id": "153_0",
"calendarId": 47,
"title": "BELC21 > 153 > Mango",
"startDate": "2016-08-19T00:00:00-05:00",
"endDate": "2016-08-31T00:00:00-05:00",
"allDay": true
}
]}

如果有人可以帮助我如何通过内存中的数据或动态数据在日历上显示事件。

最佳答案

您必须将您的商店配置为自动同步,这将在事件保存时发回。

关于javascript - 分机 : Unable to show data on calendar panel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50644884/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com