renderEvent

generates HTML content for a custom event's box

boolean renderEvent(HTMLElement container,object event);
containerHTMLElementthe event container
eventobjectthe event object
boolean
  • true - the scheduler displays a custom form
  • false - the scheduler displays the default form

Example

scheduler.renderEvent = function(container, ev) {
    var container_width = container.style.width;
    var html = "<div class='dhx_event_move my_event_move' style='width:" +
    + container_width + "'></div>";
    ...
    container.innerHTML = html;
    return true; 
}

Related samples

Details

Note, the method works only for views with the vertical scale, such as Day view, Week view etc.

See also
Back to top