Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

How to handle if i got multiple events unable to m dates in multiple array  #87

Description

@unaveen

I was unable to display the multiple event dates on the calendar.
My data is coming with multiple arrays for each date.
If i have got this output lwith multiple arrays like this then it highlights only one date (last date15-10-2020),

##output coming like this:

["2020-10-21"]
0: "2020-10-21"
length: 1
__proto__: Array(0)

["2020-10-22"]
0: "2020-10-22"
length: 1
__proto__: Array(0)

["2020-10-14"]
0: "2020-10-14"
length: 1
__proto__: Array(0)

["2020-10-15"]
0: "2020-10-15"
length: 1
__proto__: Array(0)

##Expected Output is:

// calendar init
  var eventData = [
    { date: "2020-10-09", badge: false, title: "Example 1" },
    { date: "2020-10-04", badge: false, title: "Example 2" },
    { date: "2020-10-24", badge: false, title: "Example 3" },
    { date: "2020-11-07", badge: false, title: "Example 4" },
  ];
  $("#my-calendar").zabuto_calendar({
    data: eventData,
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions