MudToggleGroup<T> API

Properties
Name Type Default Description
Behavior
CheckMark
bool
False If true, the items show a check mark next to the text or render fragment. Customize the check mark by setting SelectedIcon and UnselectedIcon
ChildContent
RenderFragment
null
Disabled
bool
False If true, the group will be disabled.
FixedContent
bool
False If true, the check mark is counter balanced with padding on the right side which makes the content stay always centered no matter if the check mark is shown or not.
SelectionMode
SelectionMode
SelectionMode.SingleSelection The selection behavior of the group. SingleSelection (the default) is a radio-button like exclusive collection. MultiSelection behaves like a group of check boxes. ToggleSelection is an exclusive single selection where you can also select nothing by toggling off the current choice.
Value
T
null The selected value in single- and toggle-selection mode.
Values
IEnumerable<T>
null The selected values for multi-selection mode.
Appearance
CheckMarkClass
string
null Classes (separated by space) to be applied to SelectedIcon/UnselectedIcon of the items (if CheckMark is true).
Color
Color
Color.Primary The color of the component. Affects borders and selection color. Default is Colors.Primary.
Delimiters
bool
True If true, show a line delimiter between items. Default is true.
Dense
bool
False If true, the component's padding is reduced so it takes up less space.
DisableRipple
bool
False If true, disables the ripple effect.
Outline
bool
True If true, show an outline border. Default is true.
Rounded
bool
False If true, the first and last item will be rounded.
SelectedClass
string
null Classes (separated by space) to be applied to the selected items only.
TextClass
string
null Classes (separated by space) to be applied to the text of all toggle items.
Vertical
bool
False If true, use vertical layout.
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
ValueChanged EventCallback<T> Fires when Value changes.
ValuesChanged EventCallback<IEnumerable<T>> Fires when Values change.

Copyright © 2020-2024 MudBlazor.

Powered by .NET 8.0.8

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