首页 > 解决方案 > FullCalendar 3.X 垂直排序不使用“开始”

问题描述

我正在使用 PHP 和 FullCalendar 3.x 开发应用程序。FullCalendar 是否可以仅根据非标准事件数据对每日条目进行垂直排序,而与“开始”无关?我知道并尝试了“eventOrder”选项。但是,即便如此,“开始”总是被考虑在内。我想仅对“标题”或其他一些事件数据进行排序,而将“开始”排除在外。以下是 PHP 后端生成并在“eventSources”选项中检索到的 JSON 示例:

[
{   "eid":                  "0123456",
    "isFrontOffice":        false,
    "isChief":              false,
    "isManager":            false,
    "recurringSequence":    "1",
    "id":                   "1629226624",
    "calendarID":           "1629226624",
    "title":                "CC Sabathia",
    "lastName":             "Sabathia",
    "approverDisplayName":  "John Q. Public",
    "centerID":             "BFM",
    "assignedID":           "BFM",
    "leaveType":            "TR",
    "leaveCategory":        "w",
    "classLabel":           null,
    "classXML":             null,   
    "requestForSelf":       "1",
    start":                 "2021-09-10T09:00",
    "end":                  "2021-09-10T15:00",
    "originalStartDate":    "2021-09-10T09:00",
    "isAllDay":             false,
    "isRecurring":          "0",
    "recurringDuration":    "d",
    "rangeOfOccurrence":    "ea",
    "endBy":                null,
    "numberOfRecurrences":  "10",
    "dowDays":              "[]",
    "shiftChange":          "0",
    "shiftTourID":          null,
    "shiftTourName":        "",
    "cipsNum":              "",
    "createDate":           "2021-08-17T18:57",
    "createdBy":            "0123456",
    "updateDate":           null,
    "updatedBy":            null,
    "resubmit":             "0",
    "notes":                "The In's and Out's of Burgers and Fries",
    "isApproved":           "1",
    "approvedBy":           "2426795",
    "approvalDate":         "2021-08-18T12:11",
    "isDenied":             "0",
    "deniedBy":             null,
    "deniedDate":           null,
    "flexGenerated":        false,
    "centerColor":          "#5293A3",
    "beginPayPeriod":       "2021-08-29 00:00:00",
    "endPayPeriod":         "2021-09-11 23:59:59",
    "displayName":          "CC Sabathia",
    "leaveTypeTitle":       "Training",
    "recurEvery":           "1",
    "originalEndDate":      "2021-09-10T15:00",
    "hasBeenViewed":        "0",
    "userAssignedID":       "BFM",
    "userCenterID":         "BFM",
    "editable":             false

}]

标签: fullcalendar-3

解决方案


推荐阅读