MudTreeViewItem<T> API

Pages
Properties
Name Type Default Description
Data
ChildContent
RenderFragment
null Child content of component used to create sub levels.
Items
HashSet<T>
null
Value
T
null Value of the treeviewitem. Acts as the displayed text if no text is set.
Behavior
BodyContent
RenderFragment<MudTreeViewItem<T>>
null Content of the item body, if used replaced the text, end text and end icon rendering.
CanExpand
bool
True If false, TreeViewItem will not be able to expand.
Content
RenderFragment
null Content of the item, if used completly replaced the default rendering.
Culture
CultureInfo
Disabled
bool
False If true, treeviewitem will be disabled.
EndIcon
string
null Icon placed after the text if set.
EndText
string
null The text at the end of the item.
Icon
string
null Icon placed before the text if set.
Text
string
null The text to display
Expanding
Expanded
bool
False Expand or collapse treeview item when it has children. Two-way bindable. Note: if you directly set this to true or false (instead of using two-way binding) it will force the item's expansion state.
ExpandedIcon
string
The expand/collapse icon.
ExpandedIconColor
Color
Color.Default The color of the expand/collapse button. It supports the theme colors.
Selecting
Activated
bool
False
CheckedIcon
string
Custom checked icon, leave null for default.
Selected
bool
False
UncheckedIcon
string
Custom unchecked icon, leave null for default.
Appearance
EndIconColor
Color
Color.Default The color of the icon. It supports the theme colors.
EndTextClass
string
null User class names for the endtext, separated by space.
EndTextTypo
Typo
Typo.body1 Tyopography for the endtext.
IconColor
Color
Color.Default The color of the icon. It supports the theme colors.
LoadingIcon
string
The loading icon.
LoadingIconColor
Color
Color.Default The color of the loading. It supports the theme colors.
TextClass
string
null User class names for the text, separated by space.
TextTypo
Typo
Typo.body1 Tyopography for the text.
Common
Class
string
null User class names, separated by space.
Style
string
null User styles, applied on top of the component's own classes and styles.
Tag
object
null Use Tag to attach any user data object to the component for your convenience.
UserAttributes
Dictionary<string, object>
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag.
EventCallbacks
Name Type Description
ActivatedChanged EventCallback<bool> Called whenever the activated value changed.
ExpandedChanged EventCallback<bool> Called whenever expanded changed.
OnClick EventCallback<MouseEventArgs> Tree item click event.
OnDoubleClick EventCallback<MouseEventArgs> Tree item double click event.
SelectedChanged EventCallback<bool> Called whenever the selected value changed.
Methods
Name Parameters Return Description
Task ReloadAsync()
Task
Clear the tree items, and try to reload from server.

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

  • An error has occurred. This application may no longer respond until reloaded. Reload 🗙