Defines the fluent API for configuring the Kendo UI Tooltip
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TBuilder
Syntax:
public class TooltipBuilderBase<TBuilder> : WidgetBuilderBase<Tooltip, TooltipBuilderBase<TBuilder>>, IHtmlContent where TBuilder : TooltipBuilderBase<TBuilder>
Inheritance: objectHelperResultWidgetBuilderBase<Tooltip, TooltipBuilderBase<TBuilder>>TooltipBuilderBase<TBuilder>
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the TooltipBuilderBase<TBuilder> class.
Methods
Configures the animation effects of the panelbar.
public TBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:TBuilder
Returns the current TBuilder instance.
Configures the animation effects of the window.
public TBuilder Animation(bool enable)
Whether the component animation is enabled.
Returns:TBuilder
Returns the current TBuilder instance.
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.
Specifies if the Tooltip callout will be displayed.
Sets the HTML content which the tooltip should display as a string.
public TBuilder Content(string value)
The action which renders the content.
Returns:TBuilder
Returns the current TBuilder instance.
Sets the HTML content which the tooltip should display as a string via TemplateBuilder<TModel>.
public TBuilder Content<TModel>(TemplateBuilder<TModel> template)
The TemplateBuilder<TModel> instance.
Returns:TBuilder
Returns the current TBuilder instance.
Sets JavaScript function which to return the content for the tooltip.
public TBuilder ContentHandler(string handler)
JavaScript function name
Returns:TBuilder
Returns the current TBuilder instance.
Sets the id of kendo template which will be used as tooltip content.
public TBuilder ContentTemplateId(string value)
The id of the template
Returns:TBuilder
Returns the current TBuilder instance.
Configures the client-side events.
public TBuilder Events(Action<TooltipEventBuilder> configurator)
The client events action.
Returns:TBuilder
Specifies a selector for elements, within the container, for which the Tooltip will be displayed.
The selector which to match the DOM element to which the Tooltip widget will be instantiated
public virtual TBuilder For(string selector)
jQuery selector
Returns:TBuilder
Returns the current TBuilder instance.
The height (in pixels) of the Tooltip.
Explicitly states whether content iframe should be created.
Sets the Url, which will be requested to return the content.
public TBuilder LoadContentFrom(RouteValueDictionary routeValues)
The route values of the Action method.
Returns:TBuilder
Returns the current TBuilder instance.
Sets the Url, which will be requested to return the content.
Define the endpoint that will return HTML content that can be loaded in the content area of the Tooltip.
public TBuilder LoadContentFrom(string actionName, string controllerName, RouteValueDictionary routeValues)
TBuilder
Returns the current TBuilder instance.
Sets the Url, which will be requested to return the content.
public TBuilder LoadContentFrom(string value)
The url.
Returns:TBuilder
Returns the current TBuilder instance.
Name method.
Represents the tooltip position.
public TBuilder Position(TooltipPosition value)
The value for Position
Returns:TBuilder
Specify the delay in milliseconds before the Tooltip is shown. This option is ignored if showOn is set to "click" or "focus".
public TBuilder ShowAfter(double value)
The value for ShowAfter
Returns:TBuilder
Represents the tooltip position.
public TBuilder ShowOn(TooltipShowOnEvent value)
The value for ShowOn
Returns:TBuilder
The width (in pixels) of the Tooltip.