Comments (3)
As a note... I used the included example json file as a guide, and I did try formatting the dates & times as strings rather than passing in the long value.
from monthly.
Hey there,
I see two problems with your code.
Firstly your api json, should be wrapped by a monthly object such as:
{
"monthly": [
{
"id": 1,
"name": "This is a JSON event",
"startdate": "2016-9-15",
"enddate": "2016-9-18",
"starttime": "12:00",
"endtime": "2:00",
"color": "#FFB128",
"url": ""
},
{
"id": 2,
"name": "This is a JSON event",
"startdate": "2016-10-15",
"enddate": "",
"starttime": "12:00",
"endtime": "2:00",
"color": "#EF44EF",
"url": ""
}
]
}
Also as you can see in the example, the time formats aren't in seconds. They must be in a "YYYY-M-D" format for the date and a "H:mm" format for the time. Try the following and see if that helps.
from monthly.
Yeah, I got it working. I missed the wrapper object. I had tried both styles of formatting the times and neither worked... but after I got the wrapper object in place I'm good. Thanks!
from monthly.
Related Issues (20)
- change the formet
- Show the list rather, than the calendar view HOT 1
- Event Descriptions HOT 2
- Day name short - HOT 1
- The selected day doesn't scroll into correct position in list view HOT 1
- how to put all sunday in holiday table and add background color
- Quick clicks loads all ajax call results on last month loaded. HOT 3
- Highlight Sunday HOT 2
- Only clicking on an event and not on blank day HOT 1
- Monthly.js datepicker displayed in background of page HOT 2
- Colored day HOT 1
- Adding tittle every day when the event is longer than a day HOT 1
- Dynamic Font Size HOT 1
- localize HOT 1
- How to show the past and future dates of previous and next month in the empty boxes ?
- getting to know to pick month and year
- How do you get this to scale vertically independently?
- Link to live demo invalid and possibly malicious HOT 1
- Is it possible to display 2 months side by side
- Outdated Jquery Function on Load
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 monthly.