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