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

load event from json data #168

Open
abdulkadhir opened this issue Dec 15, 2017 · 1 comment
Open

load event from json data #168

abdulkadhir opened this issue Dec 15, 2017 · 1 comment

Comments

@abdulkadhir
Copy link

abdulkadhir commented Dec 15, 2017

hi,
I want to load events on the calendar which is in JSON format.
my JSON data is `

[
{
"event_title": "Holiday",
"event_description": "Holiday",
"event_type": "Holiday",
"start_time": "2017-12-15",
"end_time": "2017-12-15"
},
{
"event_title": "Holiday",
"event_description": "Holiday",
"event_type": "Holiday",
"start_time": "2017-12-12",
"end_time": "2017-12-12"
}
]`

I'm new to ionic and I struck with this
can you help me with this?
thanks in advance

@twinssbc
Copy link
Owner

@abdulkadhir You need to convert your json format data to the format the calendar can recognize.
Take a look at the EventSource section in README about the mandatory fields in the event object.
You could also refer to the code in demo page.

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

2 participants