Hi @seanhoots I plus 1 this, as I’m trying to pull a set/list of events from Google Calendar via API Calls but keep receiving this error message in preview mode: “The plugin Air Calendar (Full Calendar) / element AirCalendar threw the following error: Error: This fieldName does not exist: _id
at Object.Ce.error (https://dhtiece9044ep.cloudfront.net/package/run_debug_js/c23731fad2934b826ecf3c3a30efbe4769a47c41caabb97a371d2b70c132e28d/xfalse/x5:15:1971284)
at Object.get (https://dhtiece9044ep.cloudfront.net/package/run_debug_js/c23731fad2934b826ecf3c3a30efbe4769a47c41caabb97a371d2b70c132e28d/xfalse/x5:15:1911182) (please report this to the plugin author)”.
Is there any way i could control how calendar slot looks like. In my case i would like to add custom information there. Ia there way it could be build using html tag?
Hi @jamesbond, i looked into you error and i found the issue. Bubble objects always have an _id
field which in the plugin i use it to uniquely identify different calendar events.
Unfortunately bubble events doesn’t have such field. I know how to fix it but even if it I fix it now i can’t publish the update as i’m in the middle of a implementing some major updated and bubble doesn’t provide anyway of “commenting” plugin property fields so I will have to wait and finish with the update to be able to provide the fix.
Will let you know when I push the update.
Thanks
You can customize the slots through css and html. You will have to know CSS to do this.
What customization did you want to do?
Hi @kunalsingh2705 I’m not sure where in the documentation I mentioned support for ical. If you want to import and export ical this will have to be done outside the calendar. You essentially need to convert the ical event into a bubble event and the calendar will display it. If you want to export an event you will do same, i.e. take a bubble event and convert it into an ical specification using javascript or an ical javascript library.
@seanhoots I copied across the calendar in your example and also subscribed to the Full Calendar. But the elements give me the message - You are using the Element but have not installed the Plugin - Air Calendar Full Calendar (Testing)
Hi @kunalsingh2705, the demo app is using the testing version of the plugin that is why you get that error when you try to copy from the demo.
I will soon recreate the demo with a non-testing version but for now, you will have to follow the detailed instructions in the documentation or just look at how i set thing up.
Okay let me know when it’s ready
Yes I know how to edit css but how do I add HTML. In my case I need to add icons and conditions to show different content.
Hi @seanhoots
Loving the plugin. I may have found a bug but not 100%.
I am using a condition to change the minimum time but the Calendar doesn’t appear to re-render the view when the condition is triggered. I have tried resetting inputs, reset data on the group, hide & show but nothing forces a re-render of the view?
Some screen shots showing condition in green but no change to the view
@simon this is not really a bug. The min and max values are set dynamically when the calendar initializes.
But will add the ability to force a re-render when the value changes in the next update.
For now know that whatever value is set when the calendar initializes is what will be used.
Ok thanks for the response. I guess my use case is not unusual as people will want to prevent users from booking in the past so would be great to have this feature in the next release.
Thanks again
Simon
Currently you can still dynamically set the minimum time. Just that if you change that value after initialization it won’t change.
For example you can set the min time to say current time (converted to HH:mm) and it should work. But while on the page the calendar isn’t going to re-render even though the current time has changed unless you reload the page.
Yep totally get that. If it’s 1pm today and you set the min time to 03:00 then all views get that for each day and it means when you are on today you can create an event in the past i.e. 11am.
It’s not a major drama but it would be nice to prevent this.
Thanks
Simon
Hi Sean - Is it possible to show custom event fields in the day view? ( I have bookings but would like to show price, guest name, etc fields in the day view so the staff can see all info without creating another repeating group)
@anon46801370 The issue with custom fields is that every app is going to have its own fields and different users will want to display information in different ways making it very hard to build it into a public plugin like this.
So what I will suggest is to use a popup or a group on the side of the list to display any event information on click.
The plugin exposes the currently clicked calendar event so you have full control of what data you want to show.
Hi Sean - thanks for that. One major issue is that some apps listing all events in a date wise fashion (sort of like multi -cal for multiple rooms) - this cannot be done with repeating group (repeating group will not show all the dates and events on those dates but rather rather than events listed and dates for those). This is a great help for aggregation.
A pop up on hover while useful does not help from an aggregate point of view or to understand the overall picture (as you can but show only one event at a time on pop up).
Maybe with an action that passes key:value pairs? Could be a good addition and give some freedom as to what is being displayed.
Hi Sean
The calendar seems to have gone offline for me. Giving the following error
The plugin Air Calendar (Full Calendar) / element AirCalendar threw the following error: TypeError: b.data.fn_initializeCalendar is not a function
at eval (eval at m.create_code (https://dhtiece9044ep.cloudfront.net/package/run_debug_js/7c3cb3cce18c16088ed57e642247516f9d12740b027d8c60f6c167bb73967d48/xfalse/x5:15:1897396), :17:65)
at https://dhtiece9044ep.cloudfront.net/package/run_debug_js/7c3cb3cce18c16088ed57e642247516f9d12740b027d8c60f6c167bb73967d48/xfalse/x5:15:1920536 (please report this to the plugin author)
Hi @anon46801370, sorry to hear that.
I just tested my demo page and two other test pages and they all work fine.
Also haven’t gotten any such report from any other user and I haven’t made any changes too.
So it makes me to think it might be an isolated case. Propably some inteference with other plugins or something from bubble’s end.
From the error message the main function that initializes the calendar cannot be found. This function is defined in another function that gets called the first time the calendar gets added to a page. It’s a strange error to me because the function (initial) which contains this function (fn_initializeCalendar) definition has to be called first before the function (update) that calls it has to be called.
Can you try it on an empty page without any other element for us to see if it’s something from the page.
Also let’s move this to private message as this seems to be an isolated case.