Class RadzenTreeItem
A component which is an item in a Radzen
Inheritance
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenTreeItem : IDisposable
Properties
Attributes
Specifies additional custom attributes that will be rendered by the component.
Declaration
public IReadOnlyDictionary<string, object> Attributes { get; set; }
Property Value
Type | Description |
---|---|
IRead |
The attributes. |
Checkable
Gets or sets value indicating if the tree item checkbox can be checked.
Declaration
public bool Checkable { get; set; }
Property Value
Type | Description |
---|---|
System. |
ChildContent
Gets or sets the child content.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
Render |
The child content. |
ContentCssClass
Gets or sets the CSS classes added to the content.
Declaration
public string ContentCssClass { get; set; }
Property Value
Type | Description |
---|---|
System. |
Data
The children data.
Declaration
public IEnumerable Data { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable |
Expanded
Specifies whether this item is expanded. Set to false
by default.
Declaration
public bool Expanded { get; set; }
Property Value
Type | Description |
---|---|
System. |
HasChildren
Gets or sets a value indicating whether this instance has children.
Declaration
public bool HasChildren { get; set; }
Property Value
Type | Description |
---|---|
System. |
IconCssClass
Gets or sets the CSS classes added to the icon.
Declaration
public string IconCssClass { get; set; }
Property Value
Type | Description |
---|---|
System. |
LabelCssClass
Gets or sets the CSS classes added to the label.
Declaration
public string LabelCssClass { get; set; }
Property Value
Type | Description |
---|---|
System. |
ParentItem
The RadzenTreeItem which contains this item.
Declaration
public RadzenTreeItem ParentItem { get; set; }
Property Value
Type | Description |
---|---|
Radzen |
Selected
Specifies whether this item is selected or not. Set to false
by default.
Declaration
public bool Selected { get; set; }
Property Value
Type | Description |
---|---|
System. |
Template
Gets or sets the template. Use it to customize the appearance of a tree item.
Declaration
public RenderFragment<RadzenTreeItem> Template { get; set; }
Property Value
Type | Description |
---|---|
Render |
Text
Gets or sets the text displayed by the tree item.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System. |
Tree
The RadzenTree which this item is part of.
Declaration
public RadzenTree Tree { get; set; }
Property Value
Type | Description |
---|---|
Radzen |
Value
Gets or sets the value of the tree item.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
Dispose()
Declaration
public void Dispose()
OnInitializedAsync()
Declaration
protected override async Task OnInitializedAsync()
Returns
Type | Description |
---|---|
Task |
SetParametersAsync(ParameterView)
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
Parameter |
parameters |
Returns
Type | Description |
---|---|
Task |