Skip to main content

renderEvent

Description

Generates HTML content for a custom event's box

renderEvent: (container: HTMLElement, event: any) => boolean

Parameters

  • container - (required) HTMLElement - the event container
  • event - (required) object - the event object

Returns

  • display - (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 className='dhx_event_move my_event_move' style='width:" +
+ container_width + "'></div>";
...
container.innerHTML = html;
return true;
}

Details

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

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.