map_info_content

定义地图视图中信息窗口内显示的内容

eventobject事件对象

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 窗口的内容。

它取代了旧版本 Scheduler 7.1 中移除的 scheduler.templates.marker_textscheduler.templates.marker_date 模板。

See also
  • Articles
  • Change log

    v7.1 版本新增

    返回顶部