I am using full Calendar plugin in my project. I want to display contiously 4 months. Please look at the below image,
I want to display 4 months in a full calendar. Please Help me how can I do this?
Already I have an js file, it will display 3 months simultaniously. But I want 4 months calendar. Please look at the below link which has having 3 months,
https://code.google.com/p/fullcalendar/issues/detail?id=2236
In this link, fullcalendar-cc.js file is there. It will display 3 months.
Please help me how can I display 4 month ?
Have you tried creating a custom view and adding in views:
views: {
agendaToDisplayFourWeek: {
type: 'timeline',
slotLabelFormat: 'ddd D', // Mon 3 etc
slotDuration: '24:00', // slots per day? 12:00 i.e. 12 hours AM/PM
duration: { weeks: 4 }
}
}
Related
I want to show in a all weeks between two dates and with removing Saturday and Sunday from weeks.
so is there a function to get a list of days or weeks between two dates?
i want to show some thing like That :
when the user click the there is as option:
Week 1 : From 15 to 19 October
Week 2 : From 22 to 26 October
I need to add custom label depending on day count.
For example, I have 1 calendar year
defaultView: 'timeline12Month',
views: {
timeline12Month: {
type: 'timeline',
duration: {
week: 52
},
titleFormat: 'DD.MM.YYYY'
}
}
So I need to add custom label depending on custom day count. For example, I need to add multiple stages. Stage 1(20 days), Stage 2(55 days), Stage 3(150 days) and so on.
I know its possible to change monthName array, but this is not what I'm looking for.
Is this possible to do in fullcalendar(scheduler)?
I want to get a detail (only date of week) of days of a particular week using fullCalender control.
I am getting detail of particular day only but i want a detail of whole 7 days of particular week. If I change week from 18 to 15 then data should be change.
To get the start-/enddates for a particular week you can use the viewRender callback to retrieve the information.
$('#calendar').fullCalendar({
defaultView: 'agendaWeek',
viewRender: function(view, e){
console.log(view.start, view.end);
}
});
This code will log the start & enddates in console when you change weeks.
I am wondering why OpenERP's date and datetime fields are limited with years?
If I click on year tab to select a year, it shows only 21 years in one go. if I want to select an older year, I am forced to select one older year from the list then it will open next 21 years list for me. It is annoying me.
Is there a way to increase the limit of years so that it is possible to scroll at least into a good range of years like 1950,2020 in one go?
I think I will have to play with javascript but don't know how. Can someone help me out ?
Right I understand your point here, but this is form jquery lib dattime picker yearrange is -10 abd +10 bydefault, But yes for you can increasr to limit you want I have given patch below for the trunk smiler thing als can be done it 6.1 OpenERP
=== modified file 'addons/web/static/src/js/view_form.js'
--- addons/web/static/src/js/view_form.js 2012-10-31 15:03:24 +0000
+++ addons/web/static/src/js/view_form.js 2012-11-02 05:08:29 +0000
## -2328,7 +2328,8 ##
changeYear: true,
showWeek: true,
showButtonPanel: true,
- firstDay: Date.CultureInfo.firstDayOfWeek
+ firstDay: Date.CultureInfo.firstDayOfWeek,
+ yearRange:"c-30:c+30"
});
this.$el.find('img.oe_datepicker_trigger').click(function() {
if (self.get("effective_readonly") || self.picker('widget').is(':visible')) {
Here you can see to crease the Year range -30 will allow you increase previous year range and +30 will increase upcoming year range. This are lib config can be over rideen anytime.
Thank You.
I'm building an application that records and displays daily events from 5am - 5am.
I'm using Fullcalendar to display these event in a month view. Based on this, I need to display 5am - 5am as belonging to a single day (ex. Monday).
For instance, on Monday I have 3 events:
7am to 11am
1pm to 12:30am (event spans Monday and Tuesday)
1am to 3am (event is effectively on Tuesday; however, I want it to
display on Monday)
Ideally, I'm going to add a parameter, dayStartTime, which is a custom day start time offset maintaining a 24-hour range.
My question is where within the FullCalendar plugin is it that needs to be modified to achieve this result?
try this - http://fullcalendar.io/docs/utilities/Duration/
$('#calendar').fullCalendar({
header: {
center: 'month,agendaFourDay' // buttons for switching between views
},
views: {
agendaFourDay: {
type: 'agenda',
duration: { days: 4 },
buttonText: '4 day'
}
}
});
For duration
"23:59" // hours/minutes
"23:59:59" // hours/minutes/seconds
"1.23:59:59" // days/hours/minutes/seconds
{ days:1, hours:23, minutes:59 } // an object