Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
unaveen opened this issue Oct 12, 2020 · 0 comments

Comments

@unaveen
Copy link

unaveen commented Oct 12, 2020

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,
  });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant