Kendo.Mvc.UI.Fluent.TooltipBuilderBase

Defines the fluent API for configuring the Kendo UI Tooltip

Methods

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

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.

Example (ASPX)

<%= 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.

Example (ASPX)

<%= 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.

Example (ASPX)

<%= Html.Kendo().Tooltip()
    .For("#element")
    .LoadContentFrom("AjaxView_OpenSource", "Tooltip", new { id = 10})
%>

LoadContentFrom(System.String)

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

Parameters

value System.String

The url.

Example (ASPX)

<%= 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.

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

ContentHandler(System.Func<System.Object,System.Object>)

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

ContentHandler(System.String)

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

Parameters

handler System.String

JavaScript function name

Animation(System.Boolean)

Configures the animation effects of the window.

Parameters

enable System.Boolean

Whether the component animation is enabled.

Example (ASPX)

<%= Html.Kendo().Tooltip()
    .For("#element")
    .Animation(false)

Animation(System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>)

Configures the animation effects of the panelbar.

Parameters

animationAction System.Action<Kendo.Mvc.UI.Fluent.PopupAnimationBuilder>

The action that configures the animation.

Example (ASPX)

<%= 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 Kendo.Mvc.UI.TooltipPosition

The value for Position

ShowOn(Kendo.Mvc.UI.TooltipShowOnEvent)

Represents the tooltip position.

Parameters

value Kendo.Mvc.UI.TooltipShowOnEvent

The value for ShowOn

Events(System.Action<Kendo.Mvc.UI.Fluent.TooltipEventBuilder>)

Configures the client-side events.

Parameters

configurator System.Action<Kendo.Mvc.UI.Fluent.TooltipEventBuilder>

The client events action.

Example (ASPX)

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