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.
javascript css twitter-bootstrap fullcalendar angular-ui-bootstrap
add a comment |
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.
javascript css twitter-bootstrap fullcalendar angular-ui-bootstrap
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
add a comment |
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.
javascript css twitter-bootstrap fullcalendar angular-ui-bootstrap
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
javascript css twitter-bootstrap fullcalendar angular-ui-bootstrap
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
add a comment |
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
add a comment |
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 :)
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
|
show 2 more comments
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 :)
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
|
show 2 more comments
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 :)
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
|
show 2 more comments
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 :)
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 :)
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
|
show 2 more comments
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
|
show 2 more comments
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%2f39484757%2fhow-to-customize-fullcalendar-a-javascript-event-calendar%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 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