ButtonGroupCheckBox

in namespace DotVVM.Bootstrap5.Controls

Extends the default CheckBox control with additional Bootstrap features for usage inside ButtonGroup control.

Usage & Scenarios

A special version of the CheckBox control that can be used in ButtonGroup.

See CheckBox for more info on how to use this control.

https://getbootstrap.com/docs/5.2/components/button-group/

Properties

Name Type Description Notes Default Value
property icon ButtonFontType ButtonTextColor Gets or sets the font color.
attribute
inner element
static value
bindable
default
Default
property icon ButtonSize Size Gets or sets the button size.
attribute
inner element
static value
bindable
default
Default
property icon ButtonType ButtonType Gets or sets the button type.
attribute
inner element
static value
bindable
default
Primary
property icon ButtonVisualStyle ButtonVisualStyle Gets or sets the button visual style.
attribute
inner element
static value
bindable
default
SolidFill
property icon Checked Boolean? Gets or sets whether the control is checked.
attribute
inner element
static value
bindable
default
null
property icon CheckedItems IValueBinding<IEnumerable> Gets or sets the collection of checked items. Use this property in combination with the CheckedValue property.
attribute
inner element
static value
bindable
default
null
property icon 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 CheckedItems property.
attribute
inner element
static value
bindable
default
null
property icon Content List<DotvvmControl> Gets or sets the content placed inside the control.
attribute
inner element
static value
bindable
default
null
property icon Enabled Boolean Gets or sets a value indicating whether the control is enabled and can be clicked on.
attribute
inner element
static value
bindable
default
null
property icon Text String Gets or sets the text inside the control.
attribute
inner element
static value
bindable
default
null
property icon Visible Boolean Gets or sets whether the control is visible. When set to false, `style="display: none"` will be added to this control.
attribute
inner element
static value
bindable
default
True

Events

Name Type Description
event icon Changed ICommandBinding Gets or sets the command that will be triggered when the control check state is changed.

HTML produced by the control