Class RadzenTocItem
Represents a table of contents item.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenTocItem : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IAsyncDisposable
Constructors
RadzenTocItem()
Represents a table of contents item.
Declaration
public RadzenTocItem()
Properties
ChildContent
Gets or sets the child content.
Declaration
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
Selector
Gets or sets the CSS selector of the element to scroll to.
Declaration
[Parameter]
public string? Selector { get; set; }
Property Value
Type | Description |
---|---|
string |
Template
Gets or sets the custom content of the item.
Declaration
[Parameter]
public RenderFragment? Template { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment |
Text
Gets or sets the text displayed in the table of contents.
Declaration
[Parameter]
public string? Text { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
BuildRenderTree(RenderTreeBuilder)
Represents a table of contents item.
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
RenderTreeBuilder | __builder |
Overrides
DisposeAsync()
Represents a table of contents item.
Declaration
public ValueTask DisposeAsync()
Returns
Type | Description |
---|---|
ValueTask |
OnInitializedAsync()
Represents a table of contents item.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |