Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery fullcalendar - how to reduce the size of the calendar

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

like image 373
Yatish Avatar asked Feb 09 '10 11:02

Yatish


People also ask

How do I change the height on Fullcalendar?

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.

Is full calendar responsive?

As said before fullcalendar is responsive by nature. So if you speak about to be responsive like month after weeks after day.

How do I turn off full date in Fullcalendar?

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.

How do I create a dynamic event in Fullcalendar?

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.


2 Answers

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;
}
like image 109
TFD Avatar answered Oct 19 '22 21:10

TFD


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/

like image 32
Niraj Kumar Avatar answered Oct 19 '22 21:10

Niraj Kumar