How to customize fullcalendar, a javascript event calendar?









up vote
1
down vote

favorite












I am new to javascript and web developing.



So, I used the fullcalendar library (https://fullcalendar.io/) to make a calendar view, and I wonder if I am able to customize it myself.



This is my Markup code:



<div id="blueBackground">
<div class="container">
<div id='calendar'></div>
</div>
</div>


So, the "blueBackground" is for changing the entire webpage background to blue colour. The "container" class if for resizing the fullcalendar to a more appropiate view.



This is the Javascript code:



$(document).ready(function () 

// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
// put your options and callbacks here
)

);


The javascript code is straight from the fullcalendar Usage page.(https://fullcalendar.io/docs/usage/)



So, how do I customize it? I am a complete newbie at javascript. I look around on the other questions similar to this but it bears no fruits. I can't make it work.



Thank you in advance.










share|improve this question





















  • is the [angular-ui-bootstrap] tag really necessary here ?
    – svarog
    Sep 14 '16 at 7:31






  • 1




    Could you detail what you are trying to customize ? : calendar behavior ? colors ?
    – Martin H-Works
    Sep 14 '16 at 7:36










  • @svarog hi, as I said I am new, I thought the angular-ui-bootstrap was required for the fullcalendar library
    – Jason Christopher
    Sep 15 '16 at 15:31










  • @MartinH-Works hi Martin, I am trying to change its background colour, for an example. I want to change a lot of things but I'll start with its background colour.
    – Jason Christopher
    Sep 15 '16 at 15:32














up vote
1
down vote

favorite












I am new to javascript and web developing.



So, I used the fullcalendar library (https://fullcalendar.io/) to make a calendar view, and I wonder if I am able to customize it myself.



This is my Markup code:



<div id="blueBackground">
<div class="container">
<div id='calendar'></div>
</div>
</div>


So, the "blueBackground" is for changing the entire webpage background to blue colour. The "container" class if for resizing the fullcalendar to a more appropiate view.



This is the Javascript code:



$(document).ready(function () 

// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
// put your options and callbacks here
)

);


The javascript code is straight from the fullcalendar Usage page.(https://fullcalendar.io/docs/usage/)



So, how do I customize it? I am a complete newbie at javascript. I look around on the other questions similar to this but it bears no fruits. I can't make it work.



Thank you in advance.










share|improve this question





















  • is the [angular-ui-bootstrap] tag really necessary here ?
    – svarog
    Sep 14 '16 at 7:31






  • 1




    Could you detail what you are trying to customize ? : calendar behavior ? colors ?
    – Martin H-Works
    Sep 14 '16 at 7:36










  • @svarog hi, as I said I am new, I thought the angular-ui-bootstrap was required for the fullcalendar library
    – Jason Christopher
    Sep 15 '16 at 15:31










  • @MartinH-Works hi Martin, I am trying to change its background colour, for an example. I want to change a lot of things but I'll start with its background colour.
    – Jason Christopher
    Sep 15 '16 at 15:32












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am new to javascript and web developing.



So, I used the fullcalendar library (https://fullcalendar.io/) to make a calendar view, and I wonder if I am able to customize it myself.



This is my Markup code:



<div id="blueBackground">
<div class="container">
<div id='calendar'></div>
</div>
</div>


So, the "blueBackground" is for changing the entire webpage background to blue colour. The "container" class if for resizing the fullcalendar to a more appropiate view.



This is the Javascript code:



$(document).ready(function () 

// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
// put your options and callbacks here
)

);


The javascript code is straight from the fullcalendar Usage page.(https://fullcalendar.io/docs/usage/)



So, how do I customize it? I am a complete newbie at javascript. I look around on the other questions similar to this but it bears no fruits. I can't make it work.



Thank you in advance.










share|improve this question













I am new to javascript and web developing.



So, I used the fullcalendar library (https://fullcalendar.io/) to make a calendar view, and I wonder if I am able to customize it myself.



This is my Markup code:



<div id="blueBackground">
<div class="container">
<div id='calendar'></div>
</div>
</div>


So, the "blueBackground" is for changing the entire webpage background to blue colour. The "container" class if for resizing the fullcalendar to a more appropiate view.



This is the Javascript code:



$(document).ready(function () 

// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
// put your options and callbacks here
)

);


The javascript code is straight from the fullcalendar Usage page.(https://fullcalendar.io/docs/usage/)



So, how do I customize it? I am a complete newbie at javascript. I look around on the other questions similar to this but it bears no fruits. I can't make it work.



Thank you in advance.







javascript css twitter-bootstrap fullcalendar angular-ui-bootstrap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 14 '16 at 7:27









Jason Christopher

60210




60210











  • is the [angular-ui-bootstrap] tag really necessary here ?
    – svarog
    Sep 14 '16 at 7:31






  • 1




    Could you detail what you are trying to customize ? : calendar behavior ? colors ?
    – Martin H-Works
    Sep 14 '16 at 7:36










  • @svarog hi, as I said I am new, I thought the angular-ui-bootstrap was required for the fullcalendar library
    – Jason Christopher
    Sep 15 '16 at 15:31










  • @MartinH-Works hi Martin, I am trying to change its background colour, for an example. I want to change a lot of things but I'll start with its background colour.
    – Jason Christopher
    Sep 15 '16 at 15:32
















  • is the [angular-ui-bootstrap] tag really necessary here ?
    – svarog
    Sep 14 '16 at 7:31






  • 1




    Could you detail what you are trying to customize ? : calendar behavior ? colors ?
    – Martin H-Works
    Sep 14 '16 at 7:36










  • @svarog hi, as I said I am new, I thought the angular-ui-bootstrap was required for the fullcalendar library
    – Jason Christopher
    Sep 15 '16 at 15:31










  • @MartinH-Works hi Martin, I am trying to change its background colour, for an example. I want to change a lot of things but I'll start with its background colour.
    – Jason Christopher
    Sep 15 '16 at 15:32















is the [angular-ui-bootstrap] tag really necessary here ?
– svarog
Sep 14 '16 at 7:31




is the [angular-ui-bootstrap] tag really necessary here ?
– svarog
Sep 14 '16 at 7:31




1




1




Could you detail what you are trying to customize ? : calendar behavior ? colors ?
– Martin H-Works
Sep 14 '16 at 7:36




Could you detail what you are trying to customize ? : calendar behavior ? colors ?
– Martin H-Works
Sep 14 '16 at 7:36












@svarog hi, as I said I am new, I thought the angular-ui-bootstrap was required for the fullcalendar library
– Jason Christopher
Sep 15 '16 at 15:31




@svarog hi, as I said I am new, I thought the angular-ui-bootstrap was required for the fullcalendar library
– Jason Christopher
Sep 15 '16 at 15:31












@MartinH-Works hi Martin, I am trying to change its background colour, for an example. I want to change a lot of things but I'll start with its background colour.
– Jason Christopher
Sep 15 '16 at 15:32




@MartinH-Works hi Martin, I am trying to change its background colour, for an example. I want to change a lot of things but I'll start with its background colour.
– Jason Christopher
Sep 15 '16 at 15:32












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










I am currently also using fullcalendar and here is some of the customization i have made:



$(document).ready(function () 
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
//Changing the header like this:
header:

left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
,

//Lets us edit in the calendar
editable: true,


//When u select some space in the calendar do the following:
select: function(start, end, allDay)
//do something when space selected
,


//When u click on an event in the calendar do the following:
eventClick: function(event, element)
//do something when event clicked
,


//When u drop an event in the calendar do the following:
eventDrop: function(event, delta, revertFunc)
//do something when event is dropped at a new location
,


//When u resize an event in the calendar do the following:
eventResize: function(event, delta, revertFunc)
//do something when event is resized
,


//Add some test events.
events: [

title : 'event1',
start : '2016-09-15'
,

title : 'event2',
start : '2016-09-15',
end : '2016-09-16'
,

title : 'event3',
start : '2016-09-15T12:30:00',
allDay : false // will make the time show

]
)
);


In my project I also use PHP and MySQL to store and change the events. Other than that almost all the customization's you can do are listed in the docs.



EDIT #1
How to change the basic color settings etc:
Changing the whole background color:



<div id="calendar" style="background:#de1f1f;"></div>


Changing the event background color (when you drag a new event the background is not blue anymore but red):



$(document).ready(function() 
$('#calendar').fullCalendar(
eventBackgroundColor: "#de1f1f"
);
);


Changing the event color (not blue anymore but red):



$('#calendar').fullCalendar(
events: [
// my event data
],
eventColor: "#de1f1f"
);


Changing the border color for the events:



$('#calendar').fullCalendar( 
eventBorderColor: "#de1f1f"
);


Hope that clarified just some of the customization you can do :)






share|improve this answer






















  • Thanks for the info, I will try this on my calendar and will add more information later!
    – Jason Christopher
    Sep 15 '16 at 15:33










  • @JasonChristopher I edited the post so you can see how to change some of the styles. Hope that helps even more :)
    – Lagoni
    Sep 15 '16 at 18:53










  • Hi man, Thanks for the help, really appreciate it! it does work! I'll ask for more help later in the future perhaps if that's possible. :)
    – Jason Christopher
    Sep 19 '16 at 7:38










  • Hi @Jonas Lagoni, Say an event with just a UI, so the event is not hardcoded is it possible?
    – Jason Christopher
    Sep 19 '16 at 7:54










  • @JasonChristopher I am a bit confused of what you are trying to do? Can you clarify a bit more?
    – Lagoni
    Sep 19 '16 at 12:56











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%2f39484757%2fhow-to-customize-fullcalendar-a-javascript-event-calendar%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote



accepted










I am currently also using fullcalendar and here is some of the customization i have made:



$(document).ready(function () 
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
//Changing the header like this:
header:

left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
,

//Lets us edit in the calendar
editable: true,


//When u select some space in the calendar do the following:
select: function(start, end, allDay)
//do something when space selected
,


//When u click on an event in the calendar do the following:
eventClick: function(event, element)
//do something when event clicked
,


//When u drop an event in the calendar do the following:
eventDrop: function(event, delta, revertFunc)
//do something when event is dropped at a new location
,


//When u resize an event in the calendar do the following:
eventResize: function(event, delta, revertFunc)
//do something when event is resized
,


//Add some test events.
events: [

title : 'event1',
start : '2016-09-15'
,

title : 'event2',
start : '2016-09-15',
end : '2016-09-16'
,

title : 'event3',
start : '2016-09-15T12:30:00',
allDay : false // will make the time show

]
)
);


In my project I also use PHP and MySQL to store and change the events. Other than that almost all the customization's you can do are listed in the docs.



EDIT #1
How to change the basic color settings etc:
Changing the whole background color:



<div id="calendar" style="background:#de1f1f;"></div>


Changing the event background color (when you drag a new event the background is not blue anymore but red):



$(document).ready(function() 
$('#calendar').fullCalendar(
eventBackgroundColor: "#de1f1f"
);
);


Changing the event color (not blue anymore but red):



$('#calendar').fullCalendar(
events: [
// my event data
],
eventColor: "#de1f1f"
);


Changing the border color for the events:



$('#calendar').fullCalendar( 
eventBorderColor: "#de1f1f"
);


Hope that clarified just some of the customization you can do :)






share|improve this answer






















  • Thanks for the info, I will try this on my calendar and will add more information later!
    – Jason Christopher
    Sep 15 '16 at 15:33










  • @JasonChristopher I edited the post so you can see how to change some of the styles. Hope that helps even more :)
    – Lagoni
    Sep 15 '16 at 18:53










  • Hi man, Thanks for the help, really appreciate it! it does work! I'll ask for more help later in the future perhaps if that's possible. :)
    – Jason Christopher
    Sep 19 '16 at 7:38










  • Hi @Jonas Lagoni, Say an event with just a UI, so the event is not hardcoded is it possible?
    – Jason Christopher
    Sep 19 '16 at 7:54










  • @JasonChristopher I am a bit confused of what you are trying to do? Can you clarify a bit more?
    – Lagoni
    Sep 19 '16 at 12:56















up vote
1
down vote



accepted










I am currently also using fullcalendar and here is some of the customization i have made:



$(document).ready(function () 
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
//Changing the header like this:
header:

left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
,

//Lets us edit in the calendar
editable: true,


//When u select some space in the calendar do the following:
select: function(start, end, allDay)
//do something when space selected
,


//When u click on an event in the calendar do the following:
eventClick: function(event, element)
//do something when event clicked
,


//When u drop an event in the calendar do the following:
eventDrop: function(event, delta, revertFunc)
//do something when event is dropped at a new location
,


//When u resize an event in the calendar do the following:
eventResize: function(event, delta, revertFunc)
//do something when event is resized
,


//Add some test events.
events: [

title : 'event1',
start : '2016-09-15'
,

title : 'event2',
start : '2016-09-15',
end : '2016-09-16'
,

title : 'event3',
start : '2016-09-15T12:30:00',
allDay : false // will make the time show

]
)
);


In my project I also use PHP and MySQL to store and change the events. Other than that almost all the customization's you can do are listed in the docs.



EDIT #1
How to change the basic color settings etc:
Changing the whole background color:



<div id="calendar" style="background:#de1f1f;"></div>


Changing the event background color (when you drag a new event the background is not blue anymore but red):



$(document).ready(function() 
$('#calendar').fullCalendar(
eventBackgroundColor: "#de1f1f"
);
);


Changing the event color (not blue anymore but red):



$('#calendar').fullCalendar(
events: [
// my event data
],
eventColor: "#de1f1f"
);


Changing the border color for the events:



$('#calendar').fullCalendar( 
eventBorderColor: "#de1f1f"
);


Hope that clarified just some of the customization you can do :)






share|improve this answer






















  • Thanks for the info, I will try this on my calendar and will add more information later!
    – Jason Christopher
    Sep 15 '16 at 15:33










  • @JasonChristopher I edited the post so you can see how to change some of the styles. Hope that helps even more :)
    – Lagoni
    Sep 15 '16 at 18:53










  • Hi man, Thanks for the help, really appreciate it! it does work! I'll ask for more help later in the future perhaps if that's possible. :)
    – Jason Christopher
    Sep 19 '16 at 7:38










  • Hi @Jonas Lagoni, Say an event with just a UI, so the event is not hardcoded is it possible?
    – Jason Christopher
    Sep 19 '16 at 7:54










  • @JasonChristopher I am a bit confused of what you are trying to do? Can you clarify a bit more?
    – Lagoni
    Sep 19 '16 at 12:56













up vote
1
down vote



accepted







up vote
1
down vote



accepted






I am currently also using fullcalendar and here is some of the customization i have made:



$(document).ready(function () 
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
//Changing the header like this:
header:

left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
,

//Lets us edit in the calendar
editable: true,


//When u select some space in the calendar do the following:
select: function(start, end, allDay)
//do something when space selected
,


//When u click on an event in the calendar do the following:
eventClick: function(event, element)
//do something when event clicked
,


//When u drop an event in the calendar do the following:
eventDrop: function(event, delta, revertFunc)
//do something when event is dropped at a new location
,


//When u resize an event in the calendar do the following:
eventResize: function(event, delta, revertFunc)
//do something when event is resized
,


//Add some test events.
events: [

title : 'event1',
start : '2016-09-15'
,

title : 'event2',
start : '2016-09-15',
end : '2016-09-16'
,

title : 'event3',
start : '2016-09-15T12:30:00',
allDay : false // will make the time show

]
)
);


In my project I also use PHP and MySQL to store and change the events. Other than that almost all the customization's you can do are listed in the docs.



EDIT #1
How to change the basic color settings etc:
Changing the whole background color:



<div id="calendar" style="background:#de1f1f;"></div>


Changing the event background color (when you drag a new event the background is not blue anymore but red):



$(document).ready(function() 
$('#calendar').fullCalendar(
eventBackgroundColor: "#de1f1f"
);
);


Changing the event color (not blue anymore but red):



$('#calendar').fullCalendar(
events: [
// my event data
],
eventColor: "#de1f1f"
);


Changing the border color for the events:



$('#calendar').fullCalendar( 
eventBorderColor: "#de1f1f"
);


Hope that clarified just some of the customization you can do :)






share|improve this answer














I am currently also using fullcalendar and here is some of the customization i have made:



$(document).ready(function () 
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar(
//Changing the header like this:
header:

left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
,

//Lets us edit in the calendar
editable: true,


//When u select some space in the calendar do the following:
select: function(start, end, allDay)
//do something when space selected
,


//When u click on an event in the calendar do the following:
eventClick: function(event, element)
//do something when event clicked
,


//When u drop an event in the calendar do the following:
eventDrop: function(event, delta, revertFunc)
//do something when event is dropped at a new location
,


//When u resize an event in the calendar do the following:
eventResize: function(event, delta, revertFunc)
//do something when event is resized
,


//Add some test events.
events: [

title : 'event1',
start : '2016-09-15'
,

title : 'event2',
start : '2016-09-15',
end : '2016-09-16'
,

title : 'event3',
start : '2016-09-15T12:30:00',
allDay : false // will make the time show

]
)
);


In my project I also use PHP and MySQL to store and change the events. Other than that almost all the customization's you can do are listed in the docs.



EDIT #1
How to change the basic color settings etc:
Changing the whole background color:



<div id="calendar" style="background:#de1f1f;"></div>


Changing the event background color (when you drag a new event the background is not blue anymore but red):



$(document).ready(function() 
$('#calendar').fullCalendar(
eventBackgroundColor: "#de1f1f"
);
);


Changing the event color (not blue anymore but red):



$('#calendar').fullCalendar(
events: [
// my event data
],
eventColor: "#de1f1f"
);


Changing the border color for the events:



$('#calendar').fullCalendar( 
eventBorderColor: "#de1f1f"
);


Hope that clarified just some of the customization you can do :)







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 10 at 14:01

























answered Sep 15 '16 at 13:28









Lagoni

12812




12812











  • Thanks for the info, I will try this on my calendar and will add more information later!
    – Jason Christopher
    Sep 15 '16 at 15:33










  • @JasonChristopher I edited the post so you can see how to change some of the styles. Hope that helps even more :)
    – Lagoni
    Sep 15 '16 at 18:53










  • Hi man, Thanks for the help, really appreciate it! it does work! I'll ask for more help later in the future perhaps if that's possible. :)
    – Jason Christopher
    Sep 19 '16 at 7:38










  • Hi @Jonas Lagoni, Say an event with just a UI, so the event is not hardcoded is it possible?
    – Jason Christopher
    Sep 19 '16 at 7:54










  • @JasonChristopher I am a bit confused of what you are trying to do? Can you clarify a bit more?
    – Lagoni
    Sep 19 '16 at 12:56

















  • Thanks for the info, I will try this on my calendar and will add more information later!
    – Jason Christopher
    Sep 15 '16 at 15:33










  • @JasonChristopher I edited the post so you can see how to change some of the styles. Hope that helps even more :)
    – Lagoni
    Sep 15 '16 at 18:53










  • Hi man, Thanks for the help, really appreciate it! it does work! I'll ask for more help later in the future perhaps if that's possible. :)
    – Jason Christopher
    Sep 19 '16 at 7:38










  • Hi @Jonas Lagoni, Say an event with just a UI, so the event is not hardcoded is it possible?
    – Jason Christopher
    Sep 19 '16 at 7:54










  • @JasonChristopher I am a bit confused of what you are trying to do? Can you clarify a bit more?
    – Lagoni
    Sep 19 '16 at 12:56
















Thanks for the info, I will try this on my calendar and will add more information later!
– Jason Christopher
Sep 15 '16 at 15:33




Thanks for the info, I will try this on my calendar and will add more information later!
– Jason Christopher
Sep 15 '16 at 15:33












@JasonChristopher I edited the post so you can see how to change some of the styles. Hope that helps even more :)
– Lagoni
Sep 15 '16 at 18:53




@JasonChristopher I edited the post so you can see how to change some of the styles. Hope that helps even more :)
– Lagoni
Sep 15 '16 at 18:53












Hi man, Thanks for the help, really appreciate it! it does work! I'll ask for more help later in the future perhaps if that's possible. :)
– Jason Christopher
Sep 19 '16 at 7:38




Hi man, Thanks for the help, really appreciate it! it does work! I'll ask for more help later in the future perhaps if that's possible. :)
– Jason Christopher
Sep 19 '16 at 7:38












Hi @Jonas Lagoni, Say an event with just a UI, so the event is not hardcoded is it possible?
– Jason Christopher
Sep 19 '16 at 7:54




Hi @Jonas Lagoni, Say an event with just a UI, so the event is not hardcoded is it possible?
– Jason Christopher
Sep 19 '16 at 7:54












@JasonChristopher I am a bit confused of what you are trying to do? Can you clarify a bit more?
– Lagoni
Sep 19 '16 at 12:56





@JasonChristopher I am a bit confused of what you are trying to do? Can you clarify a bit more?
– Lagoni
Sep 19 '16 at 12:56


















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39484757%2fhow-to-customize-fullcalendar-a-javascript-event-calendar%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







這個網誌中的熱門文章

How to read a connectionString WITH PROVIDER in .NET Core?

In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

Museum of Modern and Contemporary Art of Trento and Rovereto