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

Represents a table of contents item.

Declaration
public RadzenTocItem()

Properties

Selectorlink

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

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

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

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

DisposeAsynclink

Declaration
public ValueTask DisposeAsync()
Returns
Type Description
ValueTask

GetComponentCssClasslink

Declaration
protected override string GetComponentCssClass()
Returns
Type Description
string

OnInitializedAsynclink

Declaration
protected override Task OnInitializedAsync()
Returns
Type Description
Task

OnParametersSetlink

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