RadzenToc Class

Displays a table of contents for a page.

Inheritance

Object

ComponentBase

RadzenComponent

RadzenToc

Implements

IComponent

IHandleEvent

IHandleAfterRender

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenToc : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenToclink

Displays a table of contents for a page.

Declaration
public RadzenToc()

Properties

ChildContentlink

Gets or sets the child content.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content.

Orientationlink

Gets or sets the orientation of the table of contents.

Declaration
public Orientation Orientation { get; set; }
Property Value
Type Description
OrientationGets or sets the orientation of the table of contents.

Selectorlink

Gets or sets the CSS selector of the element to monitor for scroll events. By default the entire page is monitored.

Declaration
public string Selector { get; set; }
Property Value
Type Description
stringGets or sets the CSS selector of the element to monitor for scroll events. By default the entire page is monitored.

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

OnAfterRenderAsynclink

Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
Type Name Description
bool firstRender
Returns
Type Description
Task

ScrollIntoViewlink

Invoked when the current toc item changes.

Declaration
public void ScrollIntoView(string selector)
Parameters
Type Name Description
string selector
An error has occurred. This app may no longer respond until reloaded. Reload 🗙