How to adjust width and position of events in jQuery Full Calendar in week-view and day view

懵懂的女人 提交于 2019-12-19 08:34:50

问题


I am using fullcalendar in one of my Rails projects to render events on calendar.

The jsfiddle shows the scenario.

I am able to adjust the width but it does not modify the position of events in the same row next to each other. Is there a callback or method which would adjust the position of events when the width is modified


回答1:


Take a look at this fiddle: http://jsfiddle.net/100thGear/jRFYE/

I used the eventRender callback to alter the offset of the next event(s). Hope this helps and gives you an idea of how to proceed.


Why don't you use the className attribute of the event object to set this? You could set the width in the CSS class you are passing to this attribute.



来源:https://stackoverflow.com/questions/10237974/how-to-adjust-width-and-position-of-events-in-jquery-full-calendar-in-week-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!