New to Telerik UI for ASP.NET MVC? 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, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

The handler for the BodyTemplate

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

C#
public string SourceIcon { get; set; }

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

Overrides sourceIcon with a specific SVG icon name for source links inside the popover.

C#
public string SourceSVGIcon { get; set; }

The name of the SVG icon displayed on the chip.

C#
public string SvgIcon { get; set; }

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)