Comments (12)
Eureka! That did it :) Thanks! Looks great now.
from calendar-javascript-lib.
Here's a image of the working events, as well as the ones that aren't printing.
from calendar-javascript-lib.
Oh my! I will look into this during the weekend @sbennett08 🙁 I'm really sorry about that, but I have some work to do during the week.
The issue is probably the format of the JSON,
So here's the format that you should use
var data = { // dictionary
year: { // dictionary
month: { // dictionary
day: [ // array
// add here as many Event objects as you like
]
}
}
}
And the event object is:
{
startTime: "00:00",
endTime: "24:00",
text: "Christmas Day"
}
Send me your JSON output, if you can and I'll point out what's wrong exactly with it 👍 Again sorry for the quick response, I'll give a more detailed one in the weekend.
from calendar-javascript-lib.
from calendar-javascript-lib.
from calendar-javascript-lib.
Hey @sbennett08 😄 Were you referring to any screenshots, because they aren't visible on my end 🙁
By the way, I should be able to help with this issue during the week this time 🙂 I'm pretty sure it is a JSON issue, though. Here's why
Here's clearer idea of the format of the "data" variable for the calendar.
2020:
7:
02: [{…}]
07: Array(4)
0: {startTime: " 20:11:00", endTime: " 16:11:00", text: "123"}
1: {startTime: " 20:05:00", endTime: " 20:05:00", text: "Event for DEV TEST"}
2: {startTime: " 11:36:00", endTime: " 12:36:00", text: "TEST PRIVATE TICKET"}
3: {startTime: " 11:32:00", endTime: " 11:32:00", text: "TEST EVENT"}
Alright, so regarding 0
, 1
, 2
, and 3
, those need to be an array of objects too, even if there's a single object in the array.
If you have any screenshots of the actual dictionary, it might be more helpful 🙂
from calendar-javascript-lib.
from calendar-javascript-lib.
@sbennett08 I don't see them :( No need for a youtube video, can you send them through the GitHub UI instead of through email replies? Maybe that's the reason they aren't showing up on the ticket 🤔
from calendar-javascript-lib.
Can you see these?
from calendar-javascript-lib.
From these examples, the date: 7/07 is the one that's not printing. That's the last image. The third one is printing. The other two are to provide a wider view of what the whole object looks like.
from calendar-javascript-lib.
Sorry for the really late reply. And there's no error at all in the console? That's weird...
It might be related to the day being 07
and not just 7
. That's the only thing I have in mind. Because I bombarded this codepen example (https://codepen.io/nizarmah/pen/LkjjWV) with more than 1000 dummy data and I couldn't recreate the error.
So, it is most likely the 07
. It probably should be 7
instead. Please try it and let me know @sbennett08 .
from calendar-javascript-lib.
I'm glad :) Sorry again for the delayed response. If there's anything else, please let me know 👍
from calendar-javascript-lib.
Related Issues (20)
- I want to disable previous dates HOT 5
- How can I put the calendar in the center of my webpage, sorry I am new to webpage HOT 1
- Calendar is not defined HOT 1
- showing amount of events in the calendar HOT 3
- how to customise the calendar to highlight current date and is it possible to disable previous dates HOT 1
- how to Multiple select dates HOT 6
- "Basic usage" does not work HOT 3
- calendar ajax with API request. HOT 1
- Add URL for events? HOT 3
- Doesn't work on Samsung Browser HOT 4
- The Calendar and Organizer do not show the data when pulled from Database HOT 2
- Calendar does not display all events correctly HOT 2
- How to set full day event? HOT 4
- Format Date in Organizer Container HOT 2
- Could I use HTML tag in Event text? HOT 2
- "Feburary" is misspelled. HOT 2
- Text for empty results? HOT 7
- Events not showing on the orginizer or in the calendar HOT 4
- [question] License HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calendar-javascript-lib.