如何设置Essential JS Gantt图表的第一天

时间:2016-08-17 19:10:18

标签: javascript syncfusion

我尝试修改基于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组件。所以,我需要一些帮助。

1 个答案:

答案 0 :(得分:1)

目前,不支持在ejGantt中定制一周的第一天。为此,我们已经记录了有关此功能的功能请求。 请登录我们的支持网站以获取进一步的参考 https://www.syncfusion.com/Account/Logon?ReturnUrl=/support/directtrac

此致

Syncfusion团队。