Class RadzenToc
Displays a table of contents for a page.
Implements
IDisposable
IAsyncDisposable
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenToc : RadzenComponent, IDisposable, IAsyncDisposable
Properties
ChildContent
Gets or sets the child content.
Declaration
public RenderFragment? ChildContent { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<RenderFragment> |
Orientation
Gets or sets the orientation of the table of contents.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation |
Selector
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 |
---|---|
System.Nullable<System.String> |
Methods
DisposeAsync()
Declaration
public async ValueTask DisposeAsync()
Returns
Type | Description |
---|---|
ValueTask |
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnAfterRenderAsync(Boolean)
Called by the Blazor runtime.
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender |
Returns
Type | Description |
---|---|
Task |
Overrides
ScrollIntoView(String)
Invoked when the current toc item changes.
Declaration
public void ScrollIntoView(string selector)
Parameters
Type | Name | Description |
---|---|---|
System.String | selector |
Implements
IDisposable
IAsyncDisposable