New to Telerik UI for BlazorStart a free 30-day trial

Displays an inline source chip. When sources are available, clicking or activating the citation shows a resource popover with navigation through the associated Data.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Type Parameters:

TItem

Syntax:

C#
public class TelerikCitation<TItem> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikCitation<TItem>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
public TelerikCitation()

Properties

Controls whether the additional-source count suffix is shown in the chip label. When null (default) the suffix is shown automatically when there is more than one source. Set to false to always hide it.

C#
[Parameter]
public bool? AdditionalCount { get; set; }

Customizes the body of the source popover for each item in Data. When not set, the default rendering (title, URL, description) is used.

C#
[Parameter]
public RenderFragment<CitationBodyTemplateContext<TItem>> BodyTemplate { get; set; }

Provides configuration for the citation popover via CitationPopoverSettings.

C#
[Parameter]
public RenderFragment CitationSettings { get; set; }

Data

IList<TItem>

The ordered collection of source resources associated with the citation.

C#
[Parameter]
public IList<TItem> Data { get; set; }

Specifies which field of the model is used as the description of the source. Default field name is "Description".

C#
[Parameter]
public string DescriptionField { get; set; }

The chip icon. Defaults to the globe icon. You can use either a predefined Telerik Icon or a custom one.

C#
[Parameter]
public object Icon { get; set; }

The inline chip label. Defaults to the host name of the first source URL when not set.

C#
[Parameter]
public string Label { get; set; }

Fires when the citation's resource popover is about to open.

C#
[Parameter]
public EventCallback<CitationOpenEventArgs<TItem>> OnOpen { get; set; }

Defines the event that triggers the citation popover to show. Click (default) — opens and closes the popover on chip click. MouseEnter — opens the popover on chip hover and closes it when the pointer leaves both the chip and the popover.

C#
[Parameter]
public CitationShowOn ShowOn { get; set; }

Specifies which field of the model is used as the title of the source. Default field name is "Title".

C#
[Parameter]
public string TitleField { get; set; }

Specifies which field of the model is used as the URL of the source. Default field name is "Url".

C#
[Parameter]
public string UrlField { get; set; }

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)