I would like to know if it is possible to show only one week, to use this calendar for showing opening hours of a shop.
So :
- I don't want to show the day dates (only the day names) : OK
- I don't want to colorize the current day : OK
- I want the calendar display always the same week => I don't know how to do that...
Have you got any idea ? Is it possible to do that ?
Thanks a lot !
If you use the "goToDate" method:
gotoDate
Moves the calendar to an arbitrary
year/month/date.
.fullCalendar( 'gotoDate', year [,
month, [ date ]] )
IMPORTANT: month is 0-based, meaning
January=0, February=1, etc.
you could add your shop opening hours on the calendar for a given date, and then just show the date. However, you could also just add them for the current week being shown - this would then allow you to change times, for example, bank holidays etc. Have an array of special dates and print normally if not one of those dates...
Since version 1.3 and 1.4 fullcalendar is now able to show week view:
http://arshaw.com/fullcalendar/docs/views/
http://arshaw.com/fullcalendar/docs/views/Available_Views/
Example:
http://arshaw.com/fullcalendar/views/agendaWeek/
Related
I am using the calendar in list mode and a question has arisen. Can I select a specific day?
In the list mode I have a full month loaded, but when I enter for the first time I would like to select a specific day, by default, the day we are on.
Thanks for the comments, but what I need is to show all the information, and be positioned on a specific day, not always on the first day that has information, usually on day 1 of the selected month
It's possible?
Day view
list view
I used the method ".fullCalendar ('gotoDate', moment (" 30/10/2018 "," DD / MM / YYYY "))". In the rest of the views it works correctly but in the list mode the information of that day is not shown but it continues to appear on the day 01/10/2018.
Thank you
I realise that by design it's intended that fullcalendar endDates are exclusive, but I'm looking for help to work with that given my constraints.
Data stored is simple UK date format:
YYYY-MM-DD
start: 2015-01-18
end: 2015-01-19
I'd like to keep the look of the plain all day events, rather than the timestamped style and I cant just +1 end date as what happens come the end of the month?
I've tried poking through the source js, to remove any -1 corrections in there. That works for my multiday events, but then makes one day events look like two day events.
Scenario. Users select a start date and end date (of their holidays)
So that would be perhaps monday to friday. Users dont select a time, just the date. Naturally they'll select the dates they want for holiday as inclusive.
Expected behaviour.
18/1/2015 - 18/1/2015 would highlight one full day.
18/1/2015 - 19/1/2015 would highlight two full days (inclusive days)
18/1/2015 - 20/1/2015 would highlight three full days (inclusive days)
etc..etc
Actual behaviour.
18/1/2015 - 18/1/2015 will highlight one full day.
18/1/2015 - 19/1/2015 will highlight one full day (exclusive endday)
18/1/2015 - 20/1/2015 will highlight two full days (exclusive endday)
Open to suggestions, fixes, workarounds, dirty hacks.
Thanks
It's possible I'm misunderstanding, but here's a possible solution.
Inside of eventDataTransform (which is called for every event), add a time to each start and end date. Something like
eventDataTransform: function(eventData){
eventData.start.startOf('day');
eventData.start.endOf('day');
}
Thanks to slicedtoad for the hint with eventDataTransform. I just had to find the correct way to actually add 1 to the end date. For any one curious (and I'm not sure I fully understand how it works), but a one day event is still a one day event even though it appears we're add one to the end?
events:
{
url: '<?php echo base_url();?>index.php/jsonfeed',
error: function()
{
alert('error');
},
},
eventDataTransform: function(eventData)
{
eventData.end = moment(eventData.end).add(1, 'days').format();
return eventData;
},
I have a view filled with content of stuff that needs to be done every month.
I already have it set up to show everything that fits that parameter, I have one more thing i want it to filter by:
I want it to be able to show only things that have not been edited in the current month. This does not mean within a month.
If today is June 02 I want to
see something that was updated may 31
not something edited june 01
I am able to set it by an exact day, but i don't want to have to change that every month.
I am able to set it by a set amount of time(-1 month), but this will do it within a month instead of within the month
Remove your filter and add a contextual filter: Content: Updated month - Date in the form of MM (01 - 12). & select the option Provide default value to Current Date. This will make sure your view gets content from the current month & not from within a month range.
I am really stucked at this.what i want is that there should be 6 table cells in which i should have days with date. like
Monday 4/3/2013 Tuesday 5/3/2013 and so on till saturday
.i have two more buttons,previous week and next week button.. it should automatically show next week when i click the next week button and should show the previous week whenever i press the previous button..
also the i need to take the value of days/month and year so that i can use them in where clause in my sql query..pls its urgent can anyone help me with this...
im providing a link you can see what exactly i want by visiting this link
www.test.ginormous.in/dinesmart/Filestore/Food/Capture.png
i am just giving you the outline as posting the whole code is not possible.
create an asp:panel in your aspx page
try generating the table structure dynamically inside that panel by writing myPanel.innerhtml = "(your html structure generated in a string)"
use theDate.AddDays(7 - (int)theDate.DayOfWeek) to get the date for this weeks sunday.(where theDay is the current date or the date given by you and change 7 to 6 if you want it for monday as this returns date for sunday etc..)
on previous and next click you can add or subtract 7 days from the first day of the weel that is generated above.
hope this helps you.
Is there any way to set up fullcalendar to display a given number of months, or even a full year?
you can try my fork which has this feature :
https://github.com/tpruvot/fullcalendar
http://epsy.ath.cx/fullcalendar-yearview/demos/year.html