I am using jQuery fullcalendar in my application. I want to display the calendar only on the right side of my screen but not sure how to reduce the size of the calendar. Right now it is displaying in the full screen
If "auto" is specified, the view's contents will assume a natural height and no scrollbars will be used. If "100%" is specified, the height of the calendar will match the height of its parent container element. See an example. Any other valid CSS value is accepted as well.
As said before fullcalendar is responsive by nature. So if you speak about to be responsive like month after weeks after day.
You can try the following thread's solution(dayClick or select function to disable the dayclick for the past dates in fullcalendar). You can visit the fullcalendar support center and post your fullcalendar question on the StackOverflow fullcalendar tag.
although it is not specified on the fullcalender site, it is necessary to assign a value to the "allday" parameter to be able to add new events dynamically. If you set this value to "false", it will not add the event to the AllDay row. If you do "true" it will add to the AllDay row. Save this answer.
Just stick it in a div with a specified width as per home page for fullcalendar
<div id='container'>
...
<div id='calendar'></div>
...
</div>
with css
#container {
width: 810px;
}
Add a property in JSON field which we passing in the fullCalender method.
$('#calendar').fullCalendar({
height: 650
})
Referenced Url: https://fullcalendar.io/docs/display/height/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With