ButtonGroupCheckBox
in namespace DotVVM.Framework.Controls.Bootstrap4
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.
Properties
Name | Type | Description | Notes | Default Value | |
---|---|---|---|---|---|
![]() |
Checked | Boolean? | Gets or sets whether the control is checked. |
attribute
bindable
|
False |
![]() |
CheckedItems | IEnumerable | Gets or sets a collection of values of all checked checkboxes. Use this property in combination with the CheckedValue property. |
attribute
static value
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 or CheckedItems property. |
attribute
static value
bindable
|
null |
![]() |
ClientIDMode | ClientIDMode | Gets or sets the client ID generation algorithm. |
attribute
static value
|
Static |
![]() |
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
|
True |
![]() |
HtmlCapability | HtmlCapability |
attribute
static value
bindable
|
null | |
![]() |
ID | String | Gets or sets the unique control ID. |
attribute
static value
bindable
|
null |
![]() |
IncludeInPage | Boolean | Gets or sets whether the control is included in the DOM of the page. |
attribute
bindable
|
True |
![]() |
InnerText | String | Gets or sets the inner text of the HTML element. |
attribute
static value
bindable
|
null |
![]() |
ItemKeyBinding | IValueBinding | Gets or sets a property that retrieves an unique key for the CheckedValue so it can be compared with objects in the CheckedItems collection. This property must be set if the value of the CheckedValue property is not a primitive type. |
attribute
bindable
|
null |
![]() |
Text | String | Gets or sets the label text that is rendered next to the control. |
attribute
static value
bindable
|
|
![]() |
TextOrContentCapability | TextOrContentCapability |
attribute
static value
bindable
|
null | |
![]() |
Type | BootstrapButtonColor | Gets or sets the color of the button. |
attribute
static value
bindable
|
Primary |
![]() |
Visible | Boolean | Gets or sets whether the control is visible. |
attribute
bindable
|
True |
Events
Name | Type | Description | |
---|---|---|---|
![]() |
Changed | Command | Gets or sets the command that will be triggered when the control check state is changed. |