MudToggleItem<T> API

Pages
Properties
Name Type Default Description
Behavior
Disabled
bool
False If true, the item will be disabled.
Value
T
null
Appearance
ChildContent
RenderFragment<bool>
null Custom child content which overrides the text. The boolean parameter conveys whether or not the item is selected.
SelectedIcon
string
Icon to show if the item is selected (if CheckMark is true on the parent group) By default this is set to a check mark icon.
Text
string
null The text to show. You need to set this only if you want a text that differs from the Value. If null, show Value?.ToString(). Note: the Text is only shown if you haven't defined your own child content
UnselectedIcon
string
null Icon to show if the item is not selected (if CheckMark is true on the parent group) Leave null to show no check mark (default).
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.
Methods
Name Parameters Return Description
SetSelected(bool selected)
bool selected

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

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