Citation
Kendo UI Citation component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Citation : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseCitation
Implements:
Inherited Members
Constructors
Initializes a new instance of the Citation class.
public Citation(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
The handler for the BodyTemplate
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; }
Contains the localizable text strings used by the widget.
public CitationMessagesSettings Messages { 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.
public string SourceIcon { get; set; }
An array of source objects displayed in the popover. Each source object can include url, title, and description properties.
public List<CitationSource> Sources { get; set; }
Overrides sourceIcon with a specific SVG icon name for source links inside the popover.
public string SourceSVGIcon { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: