首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何设置基本JS甘特图每周的第一天

如何设置基本JS甘特图每周的第一天
EN

Stack Overflow用户
提问于 2016-08-18 03:10:18
回答 1查看 348关注 0票数 0

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

代码语言:javascript
复制
$("#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
        });
    });

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

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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-08-18 21:04:06

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

致以敬意,

Syncfusion团队。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39004491

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档