gpt4 book ai didi

javascript - 如何设置 Essential JS 甘特图一周的第一天

转载 作者:行者123 更新时间:2023-12-03 06:17:56 27 4
gpt4 key购买 nike

我尝试修改Essential JS基于 ejgantt 的项目跟踪器示例组件:

$("#gantt").ejGantt({
dataSource: projectData,
allowColumnResize: true,
allowSorting: true,
allowSelection: true,
enableResize:true,
enableContextMenu:true,
taskIdMapping: "taskID",
allowDragAndDrop:true,
taskNameMapping: "taskName",
startDateMapping: "startDate",
showColumnChooser: true,
showColumnOptions: true,
progressMapping: "progress",
durationMapping: "duration",
endDateMapping: "endDate",
childMapping: "subtasks",
enableVirtualization: false,
highlightWeekEnds: true,
includeWeekend: false,
scheduleStartDate: "02/01/2014",
scheduleEndDate: "04/09/2014",
scheduleHeaderSettings:{weekHeaderFormat : "d MMM yyyy" },
resourceInfoMapping: "resourceId",
resourceNameMapping: "resourceName",
resourceIdMapping: "resourceId",
resources: projectResources,
predecessorMapping: "predecessor",
showResourceNames:true,
toolbarSettings: {
showToolbar: true,
toolbarItems: [ej.Gantt.ToolbarItems.Add,
ej.Gantt.ToolbarItems.Edit,
ej.Gantt.ToolbarItems.Delete,
ej.Gantt.ToolbarItems.Update,
ej.Gantt.ToolbarItems.Cancel,
ej.Gantt.ToolbarItems.Indent,
ej.Gantt.ToolbarItems.Outdent,
ej.Gantt.ToolbarItems.ExpandAll,
ej.Gantt.ToolbarItems.CollapseAll,
ej.Gantt.ToolbarItems.Search]
},
editSettings: {
allowEditing: true,
allowAdding: true,
allowDeleting: true,
allowIndent: true,
editMode: "cellEditing"
},
sizeSettings:{
width:"100%",
height:"100%"
},
dragTooltip: { showTooltip: true },
showGridCellTooltip: true,
treeColumnIndex:1
});
});

我不喜欢这个组件的是,这个组件中一周的第一天是星期日:

enter image description here

我知道firstDayOfWeek方法,但是属于 ejschedule 组件。所以,我需要一些帮助。

最佳答案

目前 ejGantt 不支持自定义一周的第一天。为此,我们已经记录了与此相关的功能请求。请登录我们的支持网站以获取更多引用 https://www.syncfusion.com/Account/Logon?ReturnUrl=/support/directtrac

问候,

Syncfusion 团队。

关于javascript - 如何设置 Essential JS 甘特图一周的第一天,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39004491/

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