{"action":"created","issue":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2537","labels_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2537/labels{/name}","comments_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2537/comments","events_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2537/events","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2537","id":101881627,"number":2537,"title":"easily add an event (via renderEvent) to a specific event source","user":{"login":"arshaw","id":56520,"avatar_url":"https://avatars.githubusercontent.com/u/56520?v=3","gravatar_id":"","url":"https://api.github.com/users/arshaw","html_url":"https://github.com/arshaw","followers_url":"https://api.github.com/users/arshaw/followers","following_url":"https://api.github.com/users/arshaw/following{/other_user}","gists_url":"https://api.github.com/users/arshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/arshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arshaw/subscriptions","organizations_url":"https://api.github.com/users/arshaw/orgs","repos_url":"https://api.github.com/users/arshaw/repos","events_url":"https://api.github.com/users/arshaw/events{/privacy}","received_events_url":"https://api.github.com/users/arshaw/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/labels/Status-Accepted0","name":"Status-Accepted0","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"arshaw","id":56520,"avatar_url":"https://avatars.githubusercontent.com/u/56520?v=3","gravatar_id":"","url":"https://api.github.com/users/arshaw","html_url":"https://github.com/arshaw","followers_url":"https://api.github.com/users/arshaw/followers","following_url":"https://api.github.com/users/arshaw/following{/other_user}","gists_url":"https://api.github.com/users/arshaw/gists{/gist_id}","starred_url":"https://api.github.com/users/arshaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arshaw/subscriptions","organizations_url":"https://api.github.com/users/arshaw/orgs","repos_url":"https://api.github.com/users/arshaw/repos","events_url":"https://api.github.com/users/arshaw/events{/privacy}","received_events_url":"https://api.github.com/users/arshaw/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-08-19T12:32:43Z","updated_at":"2015-10-19T19:44:09Z","closed_at":null,"body":"Originally reported on Google Code with ID 2272\r\n```\r\nHi everyone !\r\nFirst I would like to thank all of you for this amazing plugin !\r\nI am facing the following issue :\r\nI would like to dynamically add an event to a source, and I am wondering if it is even\r\npossible.\r\n\r\nLet us take the following example :\r\nhttp://jsfiddle.net/88562sxa/\r\nI have a source : v with one event inside.\r\nI also have an event ev. Its source references v.\r\nWhen I add the event source to the calendar, everything is fine.\r\nHowever, when I want to render the ev event, it does not appear on the calendar. The\r\nsource v -even when referenced in source attribute of ev- does not change at all.\r\nIs it normal ?\r\nIs there an other way to dynamically add an event to a source ?\r\n\r\nThanks in advance !\r\nRegards,\r\nJulien Orain\r\n\r\n\r\n\r\n\r\n\r\n```\r\n\r\nReported by `julien.orain` on 2014-09-01 22:32:47\r\n\r\n\r\nImported with **1** stars."},"comment":{"url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/comments/149324485","html_url":"https://github.com/fullcalendar/fullcalendar/issues/2537#issuecomment-149324485","issue_url":"https://api.github.com/repos/fullcalendar/fullcalendar/issues/2537","id":149324485,"user":{"login":"JobaDiniz","id":165290,"avatar_url":"https://avatars.githubusercontent.com/u/165290?v=3","gravatar_id":"","url":"https://api.github.com/users/JobaDiniz","html_url":"https://github.com/JobaDiniz","followers_url":"https://api.github.com/users/JobaDiniz/followers","following_url":"https://api.github.com/users/JobaDiniz/following{/other_user}","gists_url":"https://api.github.com/users/JobaDiniz/gists{/gist_id}","starred_url":"https://api.github.com/users/JobaDiniz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JobaDiniz/subscriptions","organizations_url":"https://api.github.com/users/JobaDiniz/orgs","repos_url":"https://api.github.com/users/JobaDiniz/repos","events_url":"https://api.github.com/users/JobaDiniz/events{/privacy}","received_events_url":"https://api.github.com/users/JobaDiniz/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T19:44:09Z","updated_at":"2015-10-19T19:44:09Z","body":"It would be *really* nice to accept no an *event object*, but any obj and then use the **eventDataTransform** function.\r\n\r\n```\r\nvar source = {\r\n                id: agenda.id,\r\n                events: function (start, end, timezone, callback) {\r\n                    Appointment.all(agenda.id, start, end)\r\n                        .then(function (appointments) {\r\n                            callback(appointments);\r\n                        })\r\n                        .catch(function (error) {\r\n                            callback([]);\r\n                        });\r\n                },\r\n                eventDataTransform: eventDataTransform,\r\n                backgroundColor: agenda.backgroundColor,\r\n                textColor: agenda.textColor,\r\n                borderColor: agenda.borderColor\r\n            };\r\n```\r\n\r\nNow, I want to add an *appointment*. It would call *eventDataTransform* and everything would work."}}