Citation
Kendo UI Citation component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Citation : WidgetBase, IHtmlAttributesContainer
Inheritance: objectWidgetBaseCitation
Implements:
Inherited Members
Constructors
Initializes a new instance of the Citation 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.
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; }
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; }
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.
public CitationSourceIconSettings SourceIconSettings { get; }
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; }
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.
public CitationSourceSVGIconSettings SourceSVGIconSettings { get; }
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.
public CitationSvgIconSettings SvgIconSettings { get; }
Methods
Serialize the current instance to Dictionary
public override IDictionary<string, object> Serialize()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: