New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring the map marker tooltip settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class MapMarkerTooltipBuilder : TooltipBuilderBase<MapMarkerTooltipBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>TooltipBuilderBase<MapMarkerTooltipBuilder>MapMarkerTooltipBuilder

Implements: IHtmlContent

Inherited Members TooltipBuilderBase<MapMarkerTooltipBuilder>.For(string)TooltipBuilderBase<MapMarkerTooltipBuilder>.Name(string)TooltipBuilderBase<MapMarkerTooltipBuilder>.LoadContentFrom(RouteValueDictionary)TooltipBuilderBase<MapMarkerTooltipBuilder>.LoadContentFrom(string, string)TooltipBuilderBase<MapMarkerTooltipBuilder>.LoadContentFrom(string, string, object)TooltipBuilderBase<MapMarkerTooltipBuilder>.LoadContentFrom(string, string, RouteValueDictionary)TooltipBuilderBase<MapMarkerTooltipBuilder>.LoadContentFrom(string)TooltipBuilderBase<MapMarkerTooltipBuilder>.Content(string)TooltipBuilderBase<MapMarkerTooltipBuilder>.ContentTemplateId(string)TooltipBuilderBase<MapMarkerTooltipBuilder>.ContentHandler(Func<object, object>)TooltipBuilderBase<MapMarkerTooltipBuilder>.ContentHandler(string)TooltipBuilderBase<MapMarkerTooltipBuilder>.Content<TModel>(TemplateBuilder<TModel>)TooltipBuilderBase<MapMarkerTooltipBuilder>.Animation(bool)TooltipBuilderBase<MapMarkerTooltipBuilder>.Animation(Action<PopupAnimationBuilder>)TooltipBuilderBase<MapMarkerTooltipBuilder>.AutoHide(bool)TooltipBuilderBase<MapMarkerTooltipBuilder>.Callout(bool)TooltipBuilderBase<MapMarkerTooltipBuilder>.Filter(string)TooltipBuilderBase<MapMarkerTooltipBuilder>.Iframe(bool)TooltipBuilderBase<MapMarkerTooltipBuilder>.Height(double)TooltipBuilderBase<MapMarkerTooltipBuilder>.Width(double)TooltipBuilderBase<MapMarkerTooltipBuilder>.ShowAfter(double)TooltipBuilderBase<MapMarkerTooltipBuilder>.Position(TooltipPosition)TooltipBuilderBase<MapMarkerTooltipBuilder>.ShowOn(TooltipShowOnEvent)TooltipBuilderBase<MapMarkerTooltipBuilder>.Events(Action<TooltipEventBuilder>)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.ToComponent()WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.Expression(string)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.Explorer(ModelExplorer)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.Name(string)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.Deferred(bool)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.HtmlAttributes(object)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.ScriptAttributes(object, bool)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.Render()WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.ToHtmlString()WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.ToClientTemplate()WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.AsModule(bool)WidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.ComponentWidgetBuilderBase<Tooltip, TooltipBuilderBase<MapMarkerTooltipBuilder>>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

MapMarkerTooltipBuilder method.

C#
public MapMarkerTooltipBuilder(MapMarkerTooltip tooltip)
Parameters:tooltipMapMarkerTooltip

Methods

Defines the template that renders the tooltip content. The available fields in the template are:

  • location: The marker location.
  • marker: The marker instance.
C#
public MapMarkerTooltipBuilder Template(string value)
Parameters:valuestring

The value that configures the tooltip content.

Returns:

MapMarkerTooltipBuilder

Returns the current MapMarkerTooltipBuilder instance.

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.Markers(markers =&gt;
{
markers.Add()
.Tooltip(tooltip =&gt; tooltip.Template("Lon:#= location.lng #, Lat:#= location.lat #"));
})
)

Defines the template that renders the tooltip content. The available fields in the template are:

  • location: The marker location.
  • marker: The marker instance.
C#
public MapMarkerTooltipBuilder Template<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the tooltip content.

Returns:

MapMarkerTooltipBuilder

Returns the current MapMarkerTooltipBuilder instance.

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.Markers(markers =&gt;
{
markers.Add()
.Tooltip(tooltip =&gt; tooltip.Template(Html.Kendo().Template().AddHtml("Lon:${data.location.lng}, Lat:${data.location.lat}")));
})
)

Defines the template that renders the tooltip content. The available fields in the template are:

  • location: The marker location.
  • marker: The marker instance.
C#
public MapMarkerTooltipBuilder TemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The JavaScript function that returns the template for the tooltip.

Returns:

MapMarkerTooltipBuilder

Returns the current MapMarkerTooltipBuilder instance.

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.Markers(markers =&gt;
{
markers.Add()
.Tooltip(tooltip =&gt; tooltip.TemplateHandler("tooltipTemplate"));
})
)

Defines the template that renders the tooltip content. The available fields in the template are:

  • location: The marker location.
  • marker: The marker instance.
C#
public MapMarkerTooltipBuilder TemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The Razor View that contains the tooltip template.

Returns:

MapMarkerTooltipBuilder

Returns the current MapMarkerTooltipBuilder instance.

Example:
C#
@(Html.Kendo().Map()
.Name("map")
.Markers(markers =&gt;
{
markers.Add()
.Tooltip(tooltip =&gt; tooltip.TemplateView(Html.Partial("TooltipTemplateView")));
})
)