Can FullCalendar dayGridMonth show more than just one month? - fullcalendar

Pretty self explanatory question, I would like to show entries over a one month period, say from the middle of one month to the middle of the next - but can't seem to either expand the number of visible weeks in a dayGridMonth (client wants the day 'boxes' rather than a list) or change its starting date - anyone have any pearls of wisdom ?

Related

Render events for one year displaying a date range of 40 days in ResourceTimeline

I am in the process to add FullCalendar v4 to our react application and I'm pretty new to FullCalendar, so excuse me if I ask a basic question.
I searched both the documentation and StackOverflow, but couldn't find any hints to my current problem. Let me briefly describe our goal scenario:
We want to load and render the events for a whole year and show a date range of about 40 days (a whole month and additionally 5 days from the last and the next month) to the user. The user should be able to scroll through the whole year with the scrollbar.
The first question is whether FC4 already provides the functionality with which we can achieve our goal. I tried to define a custom view of type 'resourceTimeline' with a duration of 30 days and additionally set the 'validRange' to the current year. This gives me the look I want, but unfortunately it is static - the scrollbar is not visible as long as the screen can display the whole area of 40 days. With the next/previous buttons I can switch between the 40 days segments, but I'd rather use these buttons to switch between years and use the scrollbar to scroll within the year.
We have now tried to set the 'visibleRange' to the current year and programmatically scroll to the current date in the 'datesRender' function. The problem is that we can't decide whether FC4 was initially loaded (where we would scroll to the current date) or whether a user scrolled manually to another date in the timeline and edited an event there. In this case the scroll position should be kept.
So what we are missing is the matching callback that tells us that the 'executeRender' function has been completely executed. The question at this point is how and where I can provide an application specific callback function that is triggered after all dates and events have been rendered. I also saw several internal success callbacks. Is it possible to overwrite them?
Any ideas and hints are highly appreciated.
Thank you very much for thinking along.

Ionic date and time

I am trying to implement a form in ionic and I am struggling with the date inputs. I set the upper range of the interval of dates allowed to be 2100 (comparing to the end of the current year,which is by default),but I want the following scenario to happen: when someone clicks to choose a date, I want the picker to start from the current date and to allow going up and down to choose a past of future date. At the moment,the picker starts at the upper end of the interval,2100, and it is difficult for someone to go down to 2016 or so,if they need dates close to the current day.
<ion-datetime max="2100-12-31" [(ngModel)]="formItem.input"></ion-datetime>
How can I achieve this? Thank you!

Fullcalendar full day overlap

I'm using Fullcalendar for a vacation stay reservation system. My problem is when a reservation is ending on a day and another one is starting that same day.
In Month view it shows both bars but one is above the other which makes the whole week taller.
What I would love to do is change the shape of the event bar in those cases to either be only half the day or better still to have a triangular shape on the end of each bar so it's clear that one event ends and the other one starts after the first ends.
In Agenda View there is a setting to let bars overlap (slotEventOverlap) but even that wouldn't work the way I want. I am doing this for a client so I would like to be able to do what he asks but I can't find anything here that addresses this particular issue.
Edit: I'm using version 1.64 and in fact it's the Full Year version that is a fork from the original. If there was a full year version of 2.x I would love to use that but I haven't seen any.

Searching a range of events in a time graph

I'm trying to implement the graph from this blog post: http://blog.neo4j.org/2012/02/modeling-multilevel-index-in-neoj4.html
Inside the blogpost is a schematic of the graph and a query on how to find a range of events. However in my use case i don't have a set consecutive days. So for example the current state of the graph could be that i have day nodes from 12-7-2013 (12 july 2013) to 12-8-2013 (12 august 2013). Then when adding an event on 12-7-2014 i'm missing all the inbetween days for a whole year!
First problem is if i start to write queries that generate those days it might become very slow (application needs to be responsive). Second problem is i end up with days on which no event could be taken place, and so have unneeded data in my database.
So my question is: How can i get a range of events without using the NEXT relation between days?

A Drupal view to show the top rated node per day, each day for a year?

I have a site with user generated stories. Stories are nodes. Stories are rated with Fivestar.
I want to create a calendar style view to list the top rated story - every day, for the current year. So at the end I will have a list of 365 stories.
I'm not sure how to approach this, any help would be great.
You could make a View that takes a Date argument, where you'll pass a specific day', and return results sorted by Fivestar rating, and limiting the View to 1 result.
Then in your custom calendar, loop over every day, and each time, calling the View and showing the result, which will be the 'top rated' note. Though this might be somewhat overkill, it's suitable for a Block which shows today's current top rated Node. I wouldn't actually use it for a whole month or even year view.
Another option could be, that every 24 hours - and a little past midnight - you use that View to get the top rated note for the previous day, and store or flag it as the top rated.
That way, only 1 Node a day will be flagged or stored, and you could build a view that lists all stored/flagged nodes, ordered by date. Rating is irrelevant here, since the View you ran in Cron already picked up the top rated one. Theme this View as a grid, and maybe with an argument Month, and you are close to a Calendar like Month view of your top rated Nodes per day.
Last option would be to build a View, which gets all nodes, and sort them by rating, and group them by day. Then make sure you only print 1 per group, namely, the top rated one.

Resources