Skip to main content

map_info_content

Description

Specifies the content of the info window in the Map View

map_info_content: (event: any) => void

Parameters

  • event - (required) object - the event object

Example

scheduler.templates.map_info_content = function(event){
const formatDate = scheduler.templates.tooltip_date_format;
return `<div><b>Event's text:</b> ${event.text}
<div><b>Location:</b> ${event.event_location}</div>
<div><b>Starts:</b> ${formatDate(event.start_date)}</div>
<div><b>Ends:</b> ${formatDate(event.end_date)}</div>
</div>`;
};

Details

This template defines the content of the InfoWindow popup that is displayed when the user clicks an event marker inside the Map View.

This template replaces the scheduler.templates.marker_text and scheduler.templates.marker_date templates that were removed from the Scheduler in v7.1.

Change log

  • Added in v7.1
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.