MapMarkerTooltipBuilder

Properties

WriteAction - Func

Methods

Template(System.String)

Defines the template that renders the tooltip content. The available fields in the template are: - location: The marker location. - marker: The marker instance.

Parameters

value - System.String

The value that configures the tooltip content.

RETURNS

Returns the current MapMarkerTooltipBuilder instance.

Example

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

TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)

Defines the template that renders the tooltip content. The available fields in the template are: - location: The marker location. - marker: The marker instance.

Parameters

templateView - Microsoft.AspNetCore.Html.IHtmlContent

The Razor View that contains the tooltip template.

RETURNS

Returns the current MapMarkerTooltipBuilder instance.

Example

Razor
 
            @(Html.Kendo().Map()
               .Name("map")
               .Markers(markers =>
               {
                  markers.Add()
                    .Tooltip(tooltip => tooltip.TemplateView(Html.Partial("TooltipTemplateView")));
                })
            )
             

TemplateHandler(System.String)

Defines the template that renders the tooltip content. The available fields in the template are: - location: The marker location. - marker: The marker instance.

Parameters

templateHandler - System.String

The JavaScript function that returns the template for the tooltip.

RETURNS

Returns the current MapMarkerTooltipBuilder instance.

Example

Razor
 
            @(Html.Kendo().Map()
               .Name("map")
               .Markers(markers =>
               {
                  markers.Add()
                    .Tooltip(tooltip => tooltip.TemplateHandler("tooltipTemplate"));
                })
            )
             

Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Defines the template that renders the tooltip content. The available fields in the template are: - location: The marker location. - marker: The marker instance.

Parameters

template - TemplateBuilder<TModel>

A Template component that configures the tooltip content.

RETURNS

Returns the current MapMarkerTooltipBuilder instance.

Example

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

For(System.String)

The selector which to match the DOM element to which the Tooltip widget will be instantiated

Parameters

selector - System.String

jQuery selector

RETURNS

Returns the current instance.

Example

Razor
 
            @(Html.Kendo().Tooltip()
                        .For("#element")
            )
             

LoadContentFrom(Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the Url, which will be requested to return the content.

Parameters

routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary

The route values of the Action method.

RETURNS

Returns the current instance.

Example

Razor
 
             @( Html.Kendo().Tooltip()
                    .For("#element")
                    .LoadContentFrom(MVC.Home.Index().GetRouteValueDictionary());
            )
             

LoadContentFrom(System.String,System.String)

Sets the Url, which will be requested to return the content.

Parameters

actionName - System.String

The action name.

controllerName - System.String

The controller name.

RETURNS

Returns the current instance.

Example

Razor
 
             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .LoadContentFrom("AjaxView_OpenSource", "Tooltip")
            )
             

LoadContentFrom(System.String,System.String,System.Object)

Sets the Url, which will be requested to return the content.

Parameters

actionName - System.String

The action name.

controllerName - System.String

The controller name.

routeValues - System.Object

Route values.

RETURNS

Returns the current instance.

Example

Razor
 
             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .LoadContentFrom("AjaxView_OpenSource", "Tooltip", new { id = 10})
            )
             

LoadContentFrom(System.String,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Define the endpoint that will return HTML content that can be loaded in the content area of the Tooltip.

Parameters

actionName - System.String
controllerName - System.String
routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary

RETURNS

Returns the current instance.

LoadContentFrom(System.String)

Sets the Url, which will be requested to return the content.

Parameters

value - System.String

The url.

RETURNS

Returns the current instance.

Example

Razor
 
             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .LoadContentFrom(Url.Action("AjaxView_OpenSource", "Tooltip"))
            )
             

Content(System.String)

Sets the HTML content which the tooltip should display as a string.

Parameters

value - System.String

The action which renders the content.

RETURNS

Returns the current instance.

Example

Razor
 
             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Content("<strong> First Item Content</strong>")
            )
             

ContentTemplateId(System.String)

Sets the id of kendo template which will be used as tooltip content.

Parameters

value - System.String

The id of the template

RETURNS

Returns the current instance.

Example

Razor
 
             @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Content("template")
            )
             

ContentHandler(System.Func)

Sets JavaScript function which to return the content for the tooltip.

Parameters

handler - System.Func<Object,Object>

RETURNS

Returns the current instance.

ContentHandler(System.String)

Sets JavaScript function which to return the content for the tooltip.

Parameters

handler - System.String

JavaScript function name

RETURNS

Returns the current instance.

Content(Kendo.Mvc.UI.Fluent.TemplateBuilder)

Sets the HTML content which the tooltip should display as a string via TemplateBuilder.

Parameters

template - TemplateBuilder<TModel>

The TemplateBuilder instance.

RETURNS

Returns the current instance.

Animation(System.Boolean)

Configures the animation effects of the window.

Parameters

enable - System.Boolean

Whether the component animation is enabled.

RETURNS

Returns the current instance.

Example

Razor
 
            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Animation(false))
             

Animation(System.Action)

Configures the animation effects of the panelbar.

Parameters

animationAction - System.Action<PopupAnimationBuilder>

The action that configures the animation.

RETURNS

Returns the current instance.

Example

Razor
 
            @( Html.Kendo().Tooltip()
                        .For("#element")
                        .Animation(animation => animation.Expand))
             

AutoHide(System.Boolean)

Specifies if the Tooltip will be hidden when mouse leaves the target element. If set to false a close button will be shown within Tooltip. If set to false, showAfter is specified and the showOn is set to "mouseenter" the Tooltip will be displayed after the given timeout even if the element is no longer hovered.

Parameters

value - System.Boolean

The value for AutoHide

Callout(System.Boolean)

Specifies if the Tooltip callout will be displayed.

Parameters

value - System.Boolean

The value for Callout

Filter(System.String)

Specifies a selector for elements, within the container, for which the Tooltip will be displayed.

Parameters

value - System.String

The value for Filter

Iframe(System.Boolean)

Explicitly states whether content iframe should be created.

Parameters

value - System.Boolean

The value for Iframe

Height(System.Double)

The height (in pixels) of the Tooltip.

Parameters

value - System.Double

The value for Height

Width(System.Double)

The width (in pixels) of the Tooltip.

Parameters

value - System.Double

The value for Width

ShowAfter(System.Double)

Specify the delay in milliseconds before the Tooltip is shown. This option is ignored if showOn is set to "click" or "focus".

Parameters

value - System.Double

The value for ShowAfter

Position(Kendo.Mvc.UI.TooltipPosition)

Represents the tooltip position.

Parameters

value - TooltipPosition

The value for Position

ShowOn(Kendo.Mvc.UI.TooltipShowOnEvent)

Represents the tooltip position.

Parameters

value - TooltipShowOnEvent

The value for ShowOn

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<TooltipEventBuilder>

The client events action.

Example

Razor
 
            @(Html.Kendo().Tooltip()
                  .Name("Tooltip")
                  .Events(events => events
                      .ContentLoad("onContentLoad")
                  )
            )
             

ToComponent()

Returns the internal view component.

RETURNS

The instance that represents the component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

RETURNS

Returns the current instance.

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

RETURNS

Returns the current instance.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

RETURNS

Returns the current instance.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

RETURNS

Returns a DeferredWidgetBuilder instance.

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

RETURNS

Returns the current instance.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

RETURNS

Returns the current instance.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

RETURNS

Returns the current instance.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

RETURNS

Returns the current instance.

Render()

Renders the component in place.

ToHtmlString()

Returns the HTML representation of the component.

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

Returns the client template for the component.

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean

RETURNS

Returns the current instance.

In this article
PropertiesWriteAction - FuncMethodsTemplate(System.String)TemplateView(Microsoft.AspNetCore.Html.IHtmlContent)TemplateHandler(System.String)Template(Kendo.Mvc.UI.Fluent.TemplateBuilder)For(System.String)LoadContentFrom(Microsoft.AspNetCore.Routing.RouteValueDictionary)LoadContentFrom(System.String,System.String)LoadContentFrom(System.String,System.String,System.Object)LoadContentFrom(System.String,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)LoadContentFrom(System.String)Content(System.String)ContentTemplateId(System.String)ContentHandler(System.Func)ContentHandler(System.String)Content(Kendo.Mvc.UI.Fluent.TemplateBuilder)Animation(System.Boolean)Animation(System.Action)AutoHide(System.Boolean)Callout(System.Boolean)Filter(System.String)Iframe(System.Boolean)Height(System.Double)Width(System.Double)ShowAfter(System.Double)Position(Kendo.Mvc.UI.TooltipPosition)ShowOn(Kendo.Mvc.UI.TooltipShowOnEvent)Events(System.Action)ToComponent()Expression(System.String)Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)Name(System.String)Deferred(System.Boolean)HtmlAttributes(System.Object)HtmlAttributes(System.Collections.Generic.IDictionary)ScriptAttributes(System.Object,System.Boolean)ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)Render()ToHtmlString()WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)ToClientTemplate()AsModule(System.Boolean)
Not finding the help you need?
Contact Support