如何在周视图和日视图中调整jQuery Full Calendar中事件的宽度和位置 [英] How to adjust width and position of events in jQuery Full Calendar in week-view and day view
问题描述
我在其中一个Rails项目中使用 fullcalendar 在日历上呈现事件。
jsfiddle 显示了该场景。
我可以调整宽度,但不会修改彼此相邻的同一行中事件的位置。是否有一个回调或方法可以在宽度被修改时调整事件的位置
看看这个小提琴:
http://jsfiddle.net/100thGear/jRFYE/
我使用eventRender回调来更改下一个事件的偏移量。希望这可以帮助你,并给你一个如何进行的想法。
为什么不使用className属性事件对象来设置这个?您可以在传递给此属性的CSS类中设置宽度。
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
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.
这篇关于如何在周视图和日视图中调整jQuery Full Calendar中事件的宽度和位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!