Defines the fluent interface for configuring the Tooltip component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
TBuilder
Syntax:
public class TooltipSettingsBuilder<TBuilder> where TBuilder : TooltipSettingsBuilder<TBuilder>
Inheritance: objectTooltipSettingsBuilder<TBuilder>
Derived Classes:
Inherited Members
Constructors
Initializes a new instance of the TooltipSettingsBuilder<TBuilder> class.
Properties
Methods
Configures the animation effects of the panelbar.
public TBuilder Animation(Action<PopupAnimationBuilder> animationAction)
The action that configures the animation.
Returns:TBuilder
Configures the animation effects of the window.
public TBuilder Animation(bool enable)
Whether the component animation is enabled.
Returns:TBuilder
Determines if tooltip should be automatically hidden, or a close button should be present
public virtual TBuilder AutoHide(bool value)
Specifies if the Tooltip will be hidden when the mouse leaves the target element.
Returns:TBuilder
Determines if callout should be visible
public virtual TBuilder Callout(bool show)
Specifies if the Tooltip callout will be displayed.
Returns:TBuilder
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
public TBuilder Content<TModel>(TemplateBuilder<TModel> template)
TBuilder
Sets JavaScript function which to return the content for the tooltip.
public TBuilder ContentHandler(string handler)
JavaScript function name
Returns:TBuilder
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
Sets the id of kendo template which will be used as tooltip content.
public TBuilder ContentTemplateView(MvcHtmlString value)
The id of the template
Returns:TBuilder
Configures the client events.
public TBuilder Events(Action<TooltipEventBuilder> clientEventsAction)
The action that configures the client events.
Returns:TBuilder
Sets the height of the tooltip.
public TBuilder Height(int height)
The height (in pixels) of the Tooltip.
Returns:TBuilder
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
Sets the Url, which will be requested to return the content.
Specifies the offset in pixels between the Tooltip and the anchor.
public virtual TBuilder Offset(int offset)
Specifies the offset (in pixels) between the Tooltip and the anchor.
Returns:TBuilder
The position (relative to the target) at which the Tooltip will be shown
public virtual TBuilder Position(TooltipPosition position)
The position that is relative to the target element at which the Tooltip will be shown.
Returns:TBuilder
The inverval in milliseconds, after which the Tooltip will be shown
public virtual TBuilder ShowAfter(int milliseconds)
Specifies the delay (in milliseconds) before the Tooltip shows. This option is ignored if showOn is set to click or focus.
Returns:TBuilder
The event on which the Tooltip will be shown
public virtual TBuilder ShowOn(TooltipShowOnEvent eventName)
The event on which the Tooltip will be shown.
Returns:TBuilder
The interval in milliseconds, after which the Tooltip will be hidden
public virtual TBuilder ThemeColor(TooltipThemeColor value)
TBuilder
Sets the width of the tooltip.
public TBuilder Width(int width)
The width (in pixels) of the Tooltip.
Returns:TBuilder