CitationBuilder
Defines the fluent API for configuring the Kendo UI Citation
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class CitationBuilder : WidgetBuilderBase<Citation, CitationBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Citation, CitationBuilder>CitationBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the CitationBuilder class.
Methods
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 CitationBuilder BodyTemplate<TModel>(TemplateBuilder<TModel> template)
A Template component that configures the bodytemplate.
Returns:Returns the current CitationBuilder instance.
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 CitationBuilder BodyTemplateHandler(string templateHandler)
The handler that returs the template for BodyTemplate
Returns:Returns the current CitationBuilder instance.
Configures the client-side events.
public CitationBuilder Events(Action<CitationEventBuilder> configurator)
The client events action.
Returns:Returns the current CitationBuilder instance.
The text label displayed on the chip. When null, the hostname of the first source URL is used automatically.
public CitationBuilder Label(string value)
The value for Label
Returns:Returns the current CitationBuilder instance.
Contains the localizable text strings used by the widget.
public CitationBuilder Messages(Action<CitationMessagesSettingsBuilder> configurator)
The CitationMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of CitationBuilder .
The width of the sources popover in pixels.
public CitationBuilder PopoverWidth(double value)
The value for PopoverWidth
Returns:Returns the current CitationBuilder instance.
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 CitationBuilder ShowAdditionalCount(bool value)
The value for ShowAdditionalCount
Returns:Returns the current CitationBuilder instance.
Determines when the popover is shown.
public CitationBuilder ShowOn(CitationShowOn value)
The value for ShowOn
Returns:Returns the current CitationBuilder instance.
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 CitationBuilder SourceIcon(Action<CitationSourceIconSettingsBuilder> configurator)
The CitationSourceIconSettingsBuilder for the sourceicon setting.
Returns:Returns the current instance of CitationBuilder .
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 CitationBuilder SourceIcon(string sourceIcon)
The sourceicon.
Returns:Returns the current instance of CitationBuilder .
An array of source objects displayed in the popover. Each source object can include url, title, and description properties.
public CitationBuilder Sources(Action<CitationSourceFactory> configurator)
The CitationSourceFactory for the sources setting.
Returns:Returns the current instance of CitationBuilder .
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 CitationBuilder SourceSVGIcon(Action<CitationSourceSVGIconSettingsBuilder> configurator)
The CitationSourceSVGIconSettingsBuilder for the sourcesvgicon setting.
Returns:Returns the current instance of CitationBuilder .
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 CitationBuilder SourceSVGIcon(string sourceSVGIcon)
The sourcesvgicon.
Returns:Returns the current instance of CitationBuilder .
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 CitationBuilder SvgIcon(Action<CitationSvgIconSettingsBuilder> configurator)
The CitationSvgIconSettingsBuilder for the svgicon setting.
Returns:Returns the current instance of CitationBuilder .
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 CitationBuilder SvgIcon(string svgIcon)
The svgicon.
Returns:Returns the current instance of CitationBuilder .