New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI Popover TagHelper PopoverTagHelper class.

Definition

Namespace:Kendo.Mvc.TagHelpers

Assembly:Kendo.Mvc.dll

Syntax:

C#
[HtmlTargetElement("kendo-popover")]
[RestrictChildren("actions", new string[] { "animation", "popover-body-template" })]
public class PopoverTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent

Inheritance: objectTagHelperTagHelperBasePopoverTagHelper

Implements: ITagHelperITagHelperComponentITemplateComponent

Inherited Members TagHelperBase.MinimumValidatorTagHelperBase.MaximumValidatorTagHelperBase.Init(TagHelperContext)TagHelperBase.Process(TagHelperContext, TagHelperOutput)TagHelperBase.GetInitializator()TagHelperBase.VerifySettings()TagHelperBase.SerializeTemplates()TagHelperBase.GenerateId(TagHelperOutput)TagHelperBase.CreateHandler(string)TagHelperBase.GetRangeValidationParameter<TValue>(ModelExplorer, string)TagHelperBase.ExtractEditFormat(string)TagHelperBase.ToDictionaryHandler(IDictionary<string, string>)TagHelperBase.AddSelfToTemplate(TagHelperContext)TagHelperBase.ViewContextTagHelperBase.GeneratorTagHelperBase.InitializerTagHelperBase.WriterTagHelperBase.ScriptAttributesTagHelperBase.NameTagHelperBase.IdTagHelperBase.SelectorTagHelperBase.IdPrefixTagHelperBase.IsInClientTemplateTagHelperBase.DeferredTagHelperBase.AsModuleTagHelper.Orderobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Example:

csharp
@addTagHelper *, Kendo.Mvc

<kendo-popover name="popover">
    <actions>
        <action text="Action"></action>
    </actions>
</kendo-popover>

Constructors

Initializes a new instance of the PopoverTagHelper class.

C#
public PopoverTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

A value indicating how the actions buttons will be positioned. Possible values are: start; center; between; around; evenly or stretch.

C#
public string ActionsLayout { get; set; }

Defines a kendo template that will be used as the card body inside the popover component.

C#
public string Body { get; set; }

Defines a kendo template that will be used as the card body inside the popover component.

C#
public string BodyHandler { get; set; }

Specifies a selector for the elements within the container which will display the Popover.

C#
public string Filter { get; set; }

The Id of element, for which the Popover is initialized.

C#
public string For { get; set; }

Defines a kendo template that will be used as the card header inside the popover component.

C#
public string Header { get; set; }

Defines a kendo template that will be used as the card header inside the popover component.

C#
public string HeaderHandler { get; set; }

The height (in pixels) of the Popover.

C#
public double? Height { get; set; }

Specifies the offset (in pixels) between the Popover and the anchor. The offset is rendered from the callout arrow.

C#
public double? Offset { get; set; }

The name of the JavaScript function that will handle the hide event. Fires when a Popover is hidden.

C#
public string OnHide { get; set; }

The name of the JavaScript function that will handle the show event. Fires when a Popover is shown.

C#
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.

C#
public string Position { get; set; }

The event on which the Popover will be shown.The supported values are: mouseenter; click or focus.

C#
public string ShowOn { get; set; }

Represents a collection of templates defined for the component.

C#
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }

Implements: ITemplateComponent.Templates

Defines a value indicating whether the popover will show/hide only when clicking on the target element.

C#
public bool? ToggleOnClick { get; set; }

The width (in pixels) of the Popover.

C#
public double? Width { get; set; }

Methods

Gets the initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

The initialization script.

Overrides: TagHelperBase.GetInitializationScript()

C#
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Parameters:contextTagHelperContextoutputTagHelperOutputReturns:

Task

Overrides: TagHelper.ProcessAsync(TagHelperContext, TagHelperOutput)

Serializes the defined settings.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: TagHelperBase.Serialize()

SerializeEvents method.

C#
protected override Dictionary<string, object> SerializeEvents()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeEvents()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: TagHelperBase.SerializeSettings()

Writes the HTML output.

C#
protected override void WriteHtml(TagHelperOutput output)
Parameters:outputTagHelperOutput

The TagHelper output.

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)