Popover
Kendo UI Popover component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Popover : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBasePopover
Implements:
Inherited Members
Constructors
Initializes a new instance of the Popover class.
public Popover(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
An array of the action buttons
public List<PopoverAction> Actions { get; set; }
public PopoverActionLayout? ActionsLayout { get; set; }
public PopupAnimation Animation { get; set; }
Defines a kendo template that will be used as the card body inside the popover component.
public string Body { get; set; }
public ClientHandlerDescriptor BodyHandler { get; set; }
Defines a kendo template that will be used as the card header inside the popover component.
public string Header { get; set; }
public ClientHandlerDescriptor HeaderHandler { get; set; }
Specifies the offset (in pixels) between the Popover and the anchor. The offset is rendered from the callout arrow.
public double? Offset { get; set; }
public PopoverPosition? Position { get; set; }
public PopoverShowOn? ShowOn { get; set; }
Defines a value indicating whether the popover will show/hide only when clicking on the target element.
public bool? ToggleOnClick { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: