Issue 75: Trigger function AFTER event Render
Status:  Done
Owner: ----
Closed:  Dec 2009
Reported by rmalk...@gmail.com, Aug 9, 2009
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
								
Aug 30, 2009
Project Member #1 adamrs...@gmail.com
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
Oct 13, 2009
Project Member #2 adamrs...@gmail.com
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
Project Member #3 adamrs...@gmail.com
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