PopoverBuilder
Defines the fluent API for configuring the Kendo UI Popover
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PopoverBuilder : WidgetBuilderBase<Popover, PopoverBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Popover, PopoverBuilder>PopoverBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the PopoverBuilder class.
Methods
An array of the action buttons
public PopoverBuilder Actions(Action<PopoverActionFactory> configurator)
The PopoverActionFactory for the actions setting.
Returns:Returns the current instance of PopoverBuilder .
Defines how the actions buttons will be positioned
public PopoverBuilder ActionsLayout(PopoverActionsLayout value)
The value for ActionsLayout
Returns:Returns the current PopoverBuilder instance.
Configures the animation effects of the popover.
public PopoverBuilder Animation(Action<PopupAnimationBuilder> animationAction)
Configuration parameter for setting the Animation.
Returns:Returns the current PopoverBuilder instance.
Configures the animation effects of the popover.
public PopoverBuilder Animation(bool enable)
Boolean parameter for setting the Animation configuration.
Returns:Returns the current PopoverBuilder instance.
Defines a kendo template that will be used as the card body inside the popover component.
public PopoverBuilder Body(string value)
The value for Body
Returns:Returns the current PopoverBuilder instance.
Sets the content of the popover body.
public PopoverBuilder Body<TModel>(TemplateBuilder<TModel> template)
The TemplateBuilder<TModel> for the popover body.
Returns:Returns the current PopoverBuilder instance.
Defines a kendo template that will be used as the card body inside the popover component.
public PopoverBuilder BodyHandler(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current PopoverBuilder instance.
Defines a kendo template that will be used as the card body inside the popover component.
public PopoverBuilder BodyHandler(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current PopoverBuilder instance.
Configures the client-side events.
public PopoverBuilder Events(Action<PopoverEventBuilder> configurator)
The client events action.
Returns:Returns the current PopoverBuilder instance.
Specifies a selector for the elements within the container which will display the Popover.
public PopoverBuilder Filter(string value)
The value for Filter
Returns:Returns the current PopoverBuilder instance.
The selector which to match the DOM element to which the Popover widget will be instantiated
public virtual PopoverBuilder For(string selector)
jQuery selector
Returns:Returns the current PopoverBuilder instance.
Defines a kendo template that will be used as the card header inside the popover component.
public PopoverBuilder Header(string value)
The value for Header
Returns:Returns the current PopoverBuilder instance.
Defines a kendo template that will be used as the card header inside the popover component.
public PopoverBuilder HeaderHandler(Func<object, object> handler)
The handler code wrapped in a text tag.
Returns:Returns the current PopoverBuilder instance.
Defines a kendo template that will be used as the card header inside the popover component.
public PopoverBuilder HeaderHandler(string handler)
The name of the JavaScript function that will be evaluated.
Returns:Returns the current PopoverBuilder instance.
The height (in pixels) of the Popover.
public PopoverBuilder Height(double value)
The value for Height
Returns:Returns the current PopoverBuilder instance.
Specifies the offset (in pixels) between the Popover and the anchor. The offset is rendered from the callout arrow.
public PopoverBuilder Offset(double value)
The value for Offset
Returns:Returns the current PopoverBuilder instance.
The position that is relative to the target element at which the Popover will be shown.
public PopoverBuilder Position(PopoverPosition value)
The value for Position
Returns:Returns the current PopoverBuilder instance.
Defines when the Popover will be shown.
public PopoverBuilder ShowOn(PopoverShowOn value)
The value for ShowOn
Returns:Returns the current PopoverBuilder instance.
Defines a value indicating whether the popover will show/hide only when clicking on the target element.
Defines a value indicating whether the popover will show/hide only when clicking on the target element.
public PopoverBuilder ToggleOnClick(bool value)
The value for ToggleOnClick
Returns:Returns the current PopoverBuilder instance.
The width (in pixels) of the Popover.
public PopoverBuilder Width(double value)
The value for Width
Returns:Returns the current PopoverBuilder instance.