Перейти к основному содержимому

marker_text

warning

Эта функицональность устарела

Description

Предоставляет текст, отображаемый в popup-маркере Google Maps для события

Parameters

  • start - (required) Date - дата начала события
  • end - (required) Date - дата окончания события
  • event - (required) object - детали события

Returns

  • text - (string) - html-содержимое, которое будет показано в scheduler

Example

scheduler.templates.marker_text = function(start,end,ev){
return "<div><b>" + ev.text + "</b><br/><br/>" + (ev.event_location || '') +
"<br/><br/>" + scheduler.templates.marker_date(start) + " - " +
scheduler.templates.marker_date(end) + "</div>";
};

Applicable views: Map view

Details

примечание

Этот template работает только если плагин map_view включен.

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.