Class RadzenTreeItem
A component which is an item in a RadzenTree
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 |
---|---|
IReadOnlyDictionary<System.String, System.Object> | 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.Boolean |
ChildContent
Gets or sets the child content.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | 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.String |
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.Boolean |
HasChildren
Gets or sets a value indicating whether this instance has children.
Declaration
public bool HasChildren { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IconCssClass
Gets or sets the CSS classes added to the icon.
Declaration
public string IconCssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LabelCssClass
Gets or sets the CSS classes added to the label.
Declaration
public string LabelCssClass { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ParentItem
The RadzenTreeItem which contains this item.
Declaration
public RadzenTreeItem ParentItem { get; set; }
Property Value
Type | Description |
---|---|
RadzenTreeItem |
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.Boolean |
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 |
---|---|
RenderFragment<RadzenTreeItem> |
Text
Gets or sets the text displayed by the tree item.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Tree
The RadzenTree which this item is part of.
Declaration
public RadzenTree Tree { get; set; }
Property Value
Type | Description |
---|---|
RadzenTree |
Value
Gets or sets the value of the tree item.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
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 |
---|---|---|
ParameterView | parameters |
Returns
Type | Description |
---|---|
Task |