map_info_content
Description
定义地图视图中信息窗口内显示的内容
map_info_content: (event: any) => void
Parameters
event- (required) 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
该模板设置在地图视图中点击事件标记时弹出的 InfoWindow 窗口的内容。