Fullcalendar display count of event per day in the column header or in a seperate row
up vote
-2
down vote
favorite
I would like to know how to display a count of the number of events per day in the column header or in a separate row.
$('#mycalendar').fullCalendar(
{
allDaySlot:true,
//allDayDefault : true,
slotDuration: '00:30:00' ,
//slotMinutes: '120',
lang: currentLangCode,
minTime: '04:00',
maxTime: '24:00',
slotEventOverlap: true,
slotLabelFormat:'h(:mm)a',
showAgendaButton: true,
columnFormat: { month: 'ddd', week: 'ddd M/D', day: 'ddd M/D' },
timeFormat: 'H:mm',
defaultView: 'agendaDay',
eventLimit: true,
theme:false,
editable: false,
contentHeight:'auto',
weekends: false ,
defaultDate: $.fullCalendar.moment(defdate),
//timezoneParam: 'America/Los_Angeles',
//ignoreTimezone: false,
header:
{
left: 'prev,next today',
center: 'title',
right: 'listDay,month,agendaWeek,agendaDay'
},
titleFormat: '['+testtext+']',
//selectable:true,
views: {
listDay: {buttonText : '☰'},
month: {
columnFormat: 'ddd'
},
agenda: {
columnFormat: 'ddd M/D ['+testtext+']'
}
day: {
titleFormat: '['+testtext+']'
},
},
events: function( start, end, timezone, callback ) {
var events =[ ];
for(var item12 in bookedSlot12){
testtext = testtext +1;
events.push(
{
title:bookedSlot12[item12].CAS_Team_OneMDCS__r.Name+' - Morning '+bookedSlot12[item12].AM_Boolean_to_Text_OneMDCS__c+' Afternoon '+bookedSlot12[item12].PM_Boolean_to_Text_OneMDCS__c+' - '+bookedSlot12[item12].Comment_OneMDCS__c,
start:bookedSlot12[item12].Date_assigned_OneMDCS__c+'T04:00:00',
end: bookedSlot12[item12].Date_assigned_OneMDCS__c+'T05:00:00',
allDay: false,
className: 'CASAvl-event',
color: '#ff0000',
id: 'BookedId'
}
)
};
};
we have added custom title. And we counting how many events are there from the for loop. Also if we are showing this only for the day view then how to get a particular date of the day. Then we can override Prev and Next button.
javascript fullcalendar lightning
add a comment |
up vote
-2
down vote
favorite
I would like to know how to display a count of the number of events per day in the column header or in a separate row.
$('#mycalendar').fullCalendar(
{
allDaySlot:true,
//allDayDefault : true,
slotDuration: '00:30:00' ,
//slotMinutes: '120',
lang: currentLangCode,
minTime: '04:00',
maxTime: '24:00',
slotEventOverlap: true,
slotLabelFormat:'h(:mm)a',
showAgendaButton: true,
columnFormat: { month: 'ddd', week: 'ddd M/D', day: 'ddd M/D' },
timeFormat: 'H:mm',
defaultView: 'agendaDay',
eventLimit: true,
theme:false,
editable: false,
contentHeight:'auto',
weekends: false ,
defaultDate: $.fullCalendar.moment(defdate),
//timezoneParam: 'America/Los_Angeles',
//ignoreTimezone: false,
header:
{
left: 'prev,next today',
center: 'title',
right: 'listDay,month,agendaWeek,agendaDay'
},
titleFormat: '['+testtext+']',
//selectable:true,
views: {
listDay: {buttonText : '☰'},
month: {
columnFormat: 'ddd'
},
agenda: {
columnFormat: 'ddd M/D ['+testtext+']'
}
day: {
titleFormat: '['+testtext+']'
},
},
events: function( start, end, timezone, callback ) {
var events =[ ];
for(var item12 in bookedSlot12){
testtext = testtext +1;
events.push(
{
title:bookedSlot12[item12].CAS_Team_OneMDCS__r.Name+' - Morning '+bookedSlot12[item12].AM_Boolean_to_Text_OneMDCS__c+' Afternoon '+bookedSlot12[item12].PM_Boolean_to_Text_OneMDCS__c+' - '+bookedSlot12[item12].Comment_OneMDCS__c,
start:bookedSlot12[item12].Date_assigned_OneMDCS__c+'T04:00:00',
end: bookedSlot12[item12].Date_assigned_OneMDCS__c+'T05:00:00',
allDay: false,
className: 'CASAvl-event',
color: '#ff0000',
id: 'BookedId'
}
)
};
};
we have added custom title. And we counting how many events are there from the for loop. Also if we are showing this only for the day view then how to get a particular date of the day. Then we can override Prev and Next button.
javascript fullcalendar lightning
Is there anything you have already researched and tried, which didn't work? Just so we don't waste time on something which is already not an option. Generally on this site people show us how they tried to solve the problem, and give us some code to fix, or ask a question about a specific detail of the code. They generally don't just make a request for a whole feature - your question can be closed as too broad if you do that. We're not a free outsourcing service. Please narrow it down to a specific problem you're facing, rather than just a statement of your requirement. Thanks.
– ADyson
Nov 20 at 9:58
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I would like to know how to display a count of the number of events per day in the column header or in a separate row.
$('#mycalendar').fullCalendar(
{
allDaySlot:true,
//allDayDefault : true,
slotDuration: '00:30:00' ,
//slotMinutes: '120',
lang: currentLangCode,
minTime: '04:00',
maxTime: '24:00',
slotEventOverlap: true,
slotLabelFormat:'h(:mm)a',
showAgendaButton: true,
columnFormat: { month: 'ddd', week: 'ddd M/D', day: 'ddd M/D' },
timeFormat: 'H:mm',
defaultView: 'agendaDay',
eventLimit: true,
theme:false,
editable: false,
contentHeight:'auto',
weekends: false ,
defaultDate: $.fullCalendar.moment(defdate),
//timezoneParam: 'America/Los_Angeles',
//ignoreTimezone: false,
header:
{
left: 'prev,next today',
center: 'title',
right: 'listDay,month,agendaWeek,agendaDay'
},
titleFormat: '['+testtext+']',
//selectable:true,
views: {
listDay: {buttonText : '☰'},
month: {
columnFormat: 'ddd'
},
agenda: {
columnFormat: 'ddd M/D ['+testtext+']'
}
day: {
titleFormat: '['+testtext+']'
},
},
events: function( start, end, timezone, callback ) {
var events =[ ];
for(var item12 in bookedSlot12){
testtext = testtext +1;
events.push(
{
title:bookedSlot12[item12].CAS_Team_OneMDCS__r.Name+' - Morning '+bookedSlot12[item12].AM_Boolean_to_Text_OneMDCS__c+' Afternoon '+bookedSlot12[item12].PM_Boolean_to_Text_OneMDCS__c+' - '+bookedSlot12[item12].Comment_OneMDCS__c,
start:bookedSlot12[item12].Date_assigned_OneMDCS__c+'T04:00:00',
end: bookedSlot12[item12].Date_assigned_OneMDCS__c+'T05:00:00',
allDay: false,
className: 'CASAvl-event',
color: '#ff0000',
id: 'BookedId'
}
)
};
};
we have added custom title. And we counting how many events are there from the for loop. Also if we are showing this only for the day view then how to get a particular date of the day. Then we can override Prev and Next button.
javascript fullcalendar lightning
I would like to know how to display a count of the number of events per day in the column header or in a separate row.
$('#mycalendar').fullCalendar(
{
allDaySlot:true,
//allDayDefault : true,
slotDuration: '00:30:00' ,
//slotMinutes: '120',
lang: currentLangCode,
minTime: '04:00',
maxTime: '24:00',
slotEventOverlap: true,
slotLabelFormat:'h(:mm)a',
showAgendaButton: true,
columnFormat: { month: 'ddd', week: 'ddd M/D', day: 'ddd M/D' },
timeFormat: 'H:mm',
defaultView: 'agendaDay',
eventLimit: true,
theme:false,
editable: false,
contentHeight:'auto',
weekends: false ,
defaultDate: $.fullCalendar.moment(defdate),
//timezoneParam: 'America/Los_Angeles',
//ignoreTimezone: false,
header:
{
left: 'prev,next today',
center: 'title',
right: 'listDay,month,agendaWeek,agendaDay'
},
titleFormat: '['+testtext+']',
//selectable:true,
views: {
listDay: {buttonText : '☰'},
month: {
columnFormat: 'ddd'
},
agenda: {
columnFormat: 'ddd M/D ['+testtext+']'
}
day: {
titleFormat: '['+testtext+']'
},
},
events: function( start, end, timezone, callback ) {
var events =[ ];
for(var item12 in bookedSlot12){
testtext = testtext +1;
events.push(
{
title:bookedSlot12[item12].CAS_Team_OneMDCS__r.Name+' - Morning '+bookedSlot12[item12].AM_Boolean_to_Text_OneMDCS__c+' Afternoon '+bookedSlot12[item12].PM_Boolean_to_Text_OneMDCS__c+' - '+bookedSlot12[item12].Comment_OneMDCS__c,
start:bookedSlot12[item12].Date_assigned_OneMDCS__c+'T04:00:00',
end: bookedSlot12[item12].Date_assigned_OneMDCS__c+'T05:00:00',
allDay: false,
className: 'CASAvl-event',
color: '#ff0000',
id: 'BookedId'
}
)
};
};
we have added custom title. And we counting how many events are there from the for loop. Also if we are showing this only for the day view then how to get a particular date of the day. Then we can override Prev and Next button.
javascript fullcalendar lightning
javascript fullcalendar lightning
edited Nov 20 at 13:22
asked Nov 20 at 8:27
Souvik Kundu
13
13
Is there anything you have already researched and tried, which didn't work? Just so we don't waste time on something which is already not an option. Generally on this site people show us how they tried to solve the problem, and give us some code to fix, or ask a question about a specific detail of the code. They generally don't just make a request for a whole feature - your question can be closed as too broad if you do that. We're not a free outsourcing service. Please narrow it down to a specific problem you're facing, rather than just a statement of your requirement. Thanks.
– ADyson
Nov 20 at 9:58
add a comment |
Is there anything you have already researched and tried, which didn't work? Just so we don't waste time on something which is already not an option. Generally on this site people show us how they tried to solve the problem, and give us some code to fix, or ask a question about a specific detail of the code. They generally don't just make a request for a whole feature - your question can be closed as too broad if you do that. We're not a free outsourcing service. Please narrow it down to a specific problem you're facing, rather than just a statement of your requirement. Thanks.
– ADyson
Nov 20 at 9:58
Is there anything you have already researched and tried, which didn't work? Just so we don't waste time on something which is already not an option. Generally on this site people show us how they tried to solve the problem, and give us some code to fix, or ask a question about a specific detail of the code. They generally don't just make a request for a whole feature - your question can be closed as too broad if you do that. We're not a free outsourcing service. Please narrow it down to a specific problem you're facing, rather than just a statement of your requirement. Thanks.
– ADyson
Nov 20 at 9:58
Is there anything you have already researched and tried, which didn't work? Just so we don't waste time on something which is already not an option. Generally on this site people show us how they tried to solve the problem, and give us some code to fix, or ask a question about a specific detail of the code. They generally don't just make a request for a whole feature - your question can be closed as too broad if you do that. We're not a free outsourcing service. Please narrow it down to a specific problem you're facing, rather than just a statement of your requirement. Thanks.
– ADyson
Nov 20 at 9:58
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53388896%2ffullcalendar-display-count-of-event-per-day-in-the-column-header-or-in-a-seperat%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is there anything you have already researched and tried, which didn't work? Just so we don't waste time on something which is already not an option. Generally on this site people show us how they tried to solve the problem, and give us some code to fix, or ask a question about a specific detail of the code. They generally don't just make a request for a whole feature - your question can be closed as too broad if you do that. We're not a free outsourcing service. Please narrow it down to a specific problem you're facing, rather than just a statement of your requirement. Thanks.
– ADyson
Nov 20 at 9:58