| Issue 75: | Trigger function AFTER event Render | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Hi,
This is not an issue.
Since the CSS definition of events is dynamically set in the plugin, I
think it would be practical to allow to update it by another trigger, after
rendering.
That is what I propose:
1- In _renderEvents()
2- Just after this :
element.css({
position: 'absolute',
top: top,
left: left1,
width: left2 - left1,
'z-index': 3
})
.appendTo(monthElement);
3- Insert this :
if (options.afterEventRender) {
var res = options.afterEventRender(event, element);
if (typeof res != 'undefined') {
if (res !== true) element = $(res);
}
}
Best Regards and thanx for this great plugin.
Heirem
http://heirem.fr
Oct 13, 2009
valerian brought up a good point about why this is needed: > some jquery plugins work only if the element is already rendered. For example: Jquery tools (http://flowplayer.org/tools/) will likely add this in 1.4, but might not have enough time to implement/document/test, so maybe in the next minor version after that.
Status:
Accepted
Dec 2, 2009
alright, this in 1.4.2 (just released). thanks for the wait. eventAfterRender http://arshaw.com/fullcalendar/docs/triggered-actions.php#triggered-actions
Status:
Done
Labels: -Type-Defect Type-Enhancement |
|
| ► Sign in to add a comment |
this could be a good idea, but what are you trying to achieve with it? you could always use eventRender in this way: eventRender: function(event, element) { element.css('color', 'red'); } it will just set the 'color' property and still use all the previously set position,top,left,width,z-index values