RadzenTocItem Class

Represents a table of contents item.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenComponentWithChildren

RadzenTocItem

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenTocItem : RadzenComponentWithChildren, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenTocItemLink to this section

Represents a table of contents item.

Declaration
public RadzenTocItem()

Properties

SelectorLink to this section

Gets or sets the CSS selector of the element to scroll to.

Declaration
public string Selector { get; set; }
Property Value
Type Description
stringGets or sets the CSS selector of the element to scroll to.

TemplateLink to this section

Gets or sets the custom content of the item.

Declaration
public RenderFragment Template { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the custom content of the item.

TextLink to this section

Gets or sets the text displayed in the table of contents.

Declaration
public string Text { get; set; }
Property Value
Type Description
stringGets or sets the text displayed in the table of contents.

Methods

BuildRenderTreeLink to this section

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

DisposeAsyncLink to this section

Declaration
public ValueTask DisposeAsync()
Returns
Type Description
ValueTask

GetComponentCssClassLink to this section

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnInitializedAsyncLink to this section

Declaration
protected override Task OnInitializedAsync()
Returns
Type Description
Task

OnParametersSetLink to this section

Declaration
protected override void OnParametersSet()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙