MudListItem API

Pages
Properties
Name Type Default Description
Behavior
Avatar
string
null Avatar to use if set.
ChildContent
RenderFragment
null Display content of this list item. If set, this overrides Text
Disabled
bool
False If true, will disable the list item if it has onclick. The value can be overridden by the parent list.
Icon
string
null Icon to use if set.
NestedList
RenderFragment
null Add child list items here to create a nested list.
OnClickHandlerPreventDefault
bool
False
Text
string
null The text to display
Expanding
AdornmentColor
Color
Color.Default The color of the adornment if used. It supports the theme colors.
Expanded
bool
False Expand or collapse nested list. Two-way bindable. Note: if you directly set this to true or false (instead of using two-way binding) it will force the nested list's expansion state.
ExpandLessIcon
string
Custom expand less icon.
ExpandMoreIcon
string
Custom expand more icon.
InitiallyExpanded
bool
False If true, expands the nested list on first display
Selecting
Value
object
null
Click action
ForceLoad
bool
False If true, force browser to redirect outside component router-space.
Href
string
null Link to a URL when clicked.
Appearance
AvatarClass
string
null Avatar CSS Class to apply if Avatar is set.
Dense
bool?
null If true, compact vertical padding will be used.
DisableGutters
bool
False If true, the left and right padding is removed.
DisableRipple
bool
False If true, disables ripple effect.
IconColor
Color
Color.Inherit The color of the icon.
IconSize
Size
Size.Medium Sets the Icon Size.
Inset
bool
False If true, the List Subheader will be indented.
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
ExpandedChanged EventCallback<bool>
OnClick EventCallback<MouseEventArgs> List click event.
Methods
Name Parameters Return Description
Dispose()

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

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