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

Kendo UI Citation component

Definition

Constructors

Initializes a new instance of the Citation class.

C#
public Citation(ViewContext viewContext)
Parameters:viewContextViewContext

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.

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; }

Contains the localizable text strings used by the widget.

C#
public CitationMessagesSettings Messages { get; }

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; }
C#
public string SourceIcon { 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#
public CitationSourceIconSettings SourceIconSettings { get; }

An array of source objects displayed in the popover. Each source object can include url, title, and description properties.

C#
public List<CitationSource> Sources { get; set; }
C#
public string SourceSVGIcon { 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#
public CitationSourceSVGIconSettings SourceSVGIconSettings { get; }
C#
public string SvgIcon { 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#
public CitationSvgIconSettings SvgIconSettings { get; }

Methods

Serialize the current instance to Dictionary

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

SerializeSettings method.

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

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)