PopoverTagHelper
Kendo UI Popover TagHelper PopoverTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-popover")]
[RestrictChildren("actions", new string[] { "animation", "popover-body-template" })]
public class PopoverTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBasePopoverTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-popover name="popover">
<actions>
<action text="Action"></action>
</actions>
</kendo-popover>
Child Tags
Constructors
Initializes a new instance of the PopoverTagHelper class.
Properties
A value indicating how the actions buttons will be positioned. Possible values are: start; center; between; around; evenly or stretch.
public string ActionsLayout { get; set; }
Defines a kendo template that will be used as the card body inside the popover component.
public string Body { get; set; }
Defines a kendo template that will be used as the card body inside the popover component.
public string BodyHandler { get; set; }
Specifies a selector for the elements within the container which will display the Popover.
public string Filter { get; set; }
The Id of element, for which the Popover is initialized.
public string For { get; set; }
Defines a kendo template that will be used as the card header inside the popover component.
public string Header { get; set; }
Defines a kendo template that will be used as the card header inside the popover component.
public string 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; }
The name of the JavaScript function that will handle the hide event. Fires when a Popover is hidden.
public string OnHide { get; set; }
The name of the JavaScript function that will handle the show event. Fires when a Popover is shown.
public string OnShow { get; set; }
The position that is relative to the target element at which the Popover will be shown.The supported values are: bottom; top; left; right or center.
public string Position { get; set; }
The event on which the Popover will be shown.The supported values are: mouseenter; click or focus.
public string ShowOn { get; set; }
Represents a collection of templates defined for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Defines a value indicating whether the popover will show/hide only when clicking on the target element.
public bool? ToggleOnClick { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: