ButtonGroupRadioButton
in namespace DotVVM.Bootstrap5.Controls
Extends the default RadioButton control with additional Bootstrap features for usage inside ButtonGroup control.
Usage & Scenarios
A special version of the RadioButton control that can be used in ButtonGroup.
See RadioButton for more info on how to use this control.
Properties
| Name | Type | Description | Notes | Default Value | |
|---|---|---|---|---|---|
| ButtonFontType | ButtonTextColor | Gets or sets the font color. |
attribute
static value
bindable
|
Default | |
| ButtonSize | Size | Gets or sets the button size. |
attribute
static value
bindable
|
Default | |
| ButtonType | ButtonType | Gets or sets the button type. |
attribute
static value
bindable
|
Primary | |
| ButtonVisualStyle | ButtonVisualStyle | Gets or sets the button visual style. |
attribute
static value
|
SolidFill | |
| Checked | Boolean? | Gets or sets whether the control is checked. |
attribute
static value
bindable
|
null | |
| CheckedItem | IValueBinding<Object> | Gets or sets the checked item. Use this property in combination with the CheckedValue property. |
attribute
bindable
|
null | |
| CheckedValue | Object | Gets or sets the value that will be used as a result when the control is checked. Use this property in combination with the CheckedItem property. |
attribute
static value
bindable
|
null | |
| ClientIDMode | ClientIDMode | Gets or sets the client ID generation algorithm. |
attribute
static value
|
Static | |
| Content | List<DotvvmControl> | Gets or sets the content placed inside the control. |
inner element
static value
default
|
null | |
| DataContext | Object | Gets or sets a data context for the control and its children. All value and command bindings are evaluated in context of this value. The DataContext is null in client-side templates. |
attribute
bindable
|
null | |
| Enabled | Boolean | Gets or sets a value indicating whether the control is enabled and can be clicked on. |
attribute
static value
bindable
|
null | |
| GroupName | String | Gets or sets a unique name for the radio button group. |
attribute
static value
bindable
|
null | |
| ID | String | Gets or sets the control client ID within its naming container. |
attribute
static value
bindable
|
null | |
| IncludeInPage | Boolean | Gets or sets whether the control is included in the DOM of the page. |
attribute
bindable
|
True | |
| Text | String | Gets or sets the text inside the control. |
attribute
static value
bindable
|
null | |
| Visible | Boolean | Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control. |
attribute
static value
bindable
|
True |
Events
| Name | Type | Description | |
|---|---|---|---|
| Changed | ICommandBinding |