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.










share|improve this question
























  • 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

















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.










share|improve this question
























  • 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















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.










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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




















  • 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



















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Wiesbaden

Marschland

Dieringhausen