MudBlazor

MudTreeView<T> API

Pages

Properties

Name Type Default Description
CheckBoxColor
Color

Color.Default

Check box color if multiselection is used.
ChildContent
RenderFragment

null

Child content of component.
Color
Color

Color.Primary

The color of the selected treeviewitem.
Dense
Boolean

False

If true, compact vertical padding will be applied to all treeview items.
Disabled
Boolean

False

If true, treeview will be disabled and all its childitems.
ExpandOnClick
Boolean

False

If true, clicking anywhere on the item will expand it, if it has childs.
Height
String

null

Setting a height will allow to scroll the treeview. If not set, it will try to grow in height. You can set this to any CSS value that the attribute 'height' accepts, i.e. 500px.
Hover
Boolean

False

Hover effect for item's on mouse-over.
Items
HashSet<T>

null

ItemTemplate
RenderFragment<T>

null

ItemTemplate for rendering children.
MaxHeight
String

null

Setting a maximum height will allow to scroll the treeview. If not set, it will try to grow in height. You can set this to any CSS value that the attribute 'height' accepts, i.e. 500px.
MultiSelection
Boolean

False

if true, multiple values can be selected via checkboxes which are automatically shown in the tree view.
ServerData
Func<T, Task<HashSet<T>>>

null

Width
String

null

Setting a width the treeview. You can set this to any CSS value that the attribute 'height' accepts, i.e. 500px.
Inherited from MudComponentBase
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
SelectedValueChanged
EventCallback<T>
Called whenever the selected value changed.
SelectedValuesChanged
EventCallback<HashSet<T>>
Called whenever the selectedvalues changed.
    An error has occurred. This application may no longer respond until reloaded. Reload 🗙