| Issue 686: | Do not display Sunday | |
| 15 people starred this issue and may be notified of changes. | Back to list |
Hello All: Not sure if anyone else would benefit from this feature request: there is already a "weekend" mode, however, it would be great if there could be a mode to NOT show Sunday. So calendar would be m,t,w,th,f,s only. I am using this calendar to show some service scheduling and a lot of companies do not work on Sunday but do work on Saturday -- trying to give back a few pixels. ;-) Great work on this project! Thanks!
Nov 21, 2010
Project Member
#1
adamrs...@gmail.com
Status:
Maybe
Dec 23, 2010
I also would like to see this feature in Fullcalendar!
Jan 19, 2011
I also be interested in the feature !!
Jan 20, 2011
For those who are interested in this feature, waiting for the official update of the code, I give you the modifications I done in order to show/hide only sunday with 'weekends' parameter (based on fullcalendar-1.4.10) :
+ line 1213 (method render(date, delta)) :
CHANGE renderBasic(1, weekends ? 7 : 5, false);
BY renderBasic(1, weekends ? 7 : 6, false);
+ line 1897 (method render(date, delta)) :
CHANGE renderAgenda(weekends ? 7 : 5);
BY renderAgenda(weekends ? 7 : 6);
+ line 4266 (method skipWeekend(date, inc, excl)) :
CHANGE while (!date.getDay() || (excl && date.getDay()==1 || !excl && date.getDay()==6)) {
BY while (!date.getDay()) {
=> Only tested in agenda week view.
Mar 15, 2011
An issue am facing here regarding the week view is that the width of an event in the allDaySlot on Saturday is not set properly. The width will be 0px based on calculations. Have been trying to go through the code as to where this could be fixed. Will look some further as to how I can get around this. If anyone has an idea or solution, that would be great.
Mar 15, 2011
Okay, I found a 'solution'. If someone could verify this, since I am not sure whether this is the right way of doing it.
Basically in the function daySegHTML(segs) { on line 3607 there is the following:
cols[0] = dayOfWeekCol(seg.start.getDay());
ols[1] = dayOfWeekCol(seg.end.getDay()-1);
Whenever it is saturday it returned cols[0] as 5 and cols[1] as 4, hence the 0px, because the result will be a negative width.
Adding the following 3 lines in the else would fix this:
if (cols[1] < cols[0]) {
cols[1] = cols[0];
}
In the if (rtl) { you would need to add:
if (cols[0] < cols[1]) {
cols[0] = cols[1];
}
Apr 4, 2011
This would be nice to have :S sadly is marked as "Maybe"
Apr 28, 2011
Hi, I implemented it in my fork, see http://github.com/phurni/fullcalendar/tree/weekends. It is in its own branch, I'll send a pull request so that it may be merged. Note that you may even choose which days are weekend days, so Sunday may be a working day and Saturday may be free. Regards.
May 4, 2011
This feature will nice. Can specify all days who are OFF days. Not necessarily "Saturday" and "Sunday", for exemple "Wednesday","Sunday" and "Monday" Waiting official implementation of this feature, i will try the new fullcalendar fork by phurni ...
Mar 6, 2012
@hurnip Nice work - thanks for sharing.
Oct 3, 2012
A workaround for v1.5.4. At line 2757 change to the following: renderAgenda(weekends ? 6 : 5); If you want, you can create a new configuration variable to have 7, 6 or 5 days.
Dec 16, 2012
@sjac...@gmail.com, I too having the same requirement. Is there any other way to do this. Help me!!
Jan 23, 2013
@juanjose Thks for that tip, works wonderfully
Jul 17, 2013
this functionality is officially released with the `hiddenDays` option in version 1.6.2: http://arshaw.com/fullcalendar/docs/display/hiddenDays/
Jul 17, 2013
(No comment was entered for this change.)
Status:
Done
Jul 18, 2013
Thank you arshaw for this new version 1.6.2 solving this issue with new "hiddenDays option" |
|
| ► Sign in to add a comment |