CitationTagHelper
Kendo UI Citation TagHelper
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-citation")]
[RestrictChildren("sources", new string[] { "body-template", "messages", "svg-icon", "source-icon", "source-svg-icon" })]
public class CitationTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseCitationTagHelper
Implements:
Inherited Members
Child Tags
Constructors
Initializes a new instance of the CitationTagHelper class.
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.
public string BodyTemplateHandler { get; set; }
The text label displayed on the chip. When null, the hostname of the first source URL is used automatically.
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.
public string OnOpen { get; set; }
The width of the sources popover in pixels.
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.
public bool? ShowAdditionalCount { get; set; }
Determines when the popover is shown.
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.
[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.
[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.
[HtmlAttributeName("svg-icon")]
public string SvgIcon { get; set; }
Configures the templates for the Citation.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
Methods
Gets the generated initialization script.
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:
Serializes the defined templates.
protected override Dictionary<string, object> SerializeTemplates()
Overrides:
Writes content to the output.
protected override void WriteHtml(TagHelperOutput output)
Overrides: