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

Kendo UI Citation TagHelper

Definition

Constructors

Initializes a new instance of the CitationTagHelper class.

C#
public CitationTagHelper(IKendoHtmlGenerator generator)
Parameters:generatorIKendoHtmlGenerator

Properties

A function used to render the entire popover body. Receives { sources: [] } as the first argument and must return an HTML string. When set, the built-in navigation buttons and source layout are not rendered. This option expects the name of a JavaScript function that will be called to return the template.

C#
public string BodyTemplateHandler { get; set; }

The text label displayed on the chip. When null, the hostname of the first source URL is used automatically.

C#
public string Label { get; set; }

The name of the JavaScript function that will handle the open event. Fired before the sources popover opens. Calling e.preventDefault() prevents the popover from being shown.The event handler function context (available via the this keyword) will be set to the widget instance.

C#
public string OnOpen { get; set; }

The width of the sources popover in pixels.

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

When true and more than one source is present, a +N count is appended to the chip label showing the number of additional sources.

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

Determines when the popover is shown.

C#
public CitationShowOn? ShowOn { get; set; }

The name of the SVG icon used for source links inside the popover.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
[HtmlAttributeName("source-icon")]
public string SourceIcon { get; set; }

Overrides sourceIcon with a specific SVG icon name for source links inside the popover.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
[HtmlAttributeName("source-svg-icon")]
public string SourceSVGIcon { get; set; }

The name of the SVG icon displayed on the chip.Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
[HtmlAttributeName("svg-icon")]
public string SvgIcon { get; set; }

Configures the templates for the Citation.

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

Implements: ITemplateComponent.Templates

Methods

Gets the generated initialization script.

C#
protected override string GetInitializationScript()
Returns:

string

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()

Serializes the defined templates.

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

Dictionary<string, object>

Overrides: TagHelperBase.SerializeTemplates()

Writes content to the output.

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

Overrides: TagHelperBase.WriteHtml(TagHelperOutput)