CheckboxInput
This documentation provides a comprehensive reference for the CheckboxInput component, including its label content, checked state binding, and event parameters.
Preview #
Parameters #
| Name | Type | Default | Required | Description | Added Version |
|---|---|---|---|---|---|
| AdditionalAttributes | Dictionary<string, object> | null | Gets or sets additional attributes that will be applied to the component. | 1.0.0 | |
| ChildContent | RenderFragment | null | Gets or sets the checkbox label content. | 1.2.0 | |
| Class | string? | null | Gets or sets the CSS class name(s) to apply to the component. | 1.0.0 | |
| Disabled | bool | False | Gets or sets the disabled state. | 1.2.0 | |
| Id | string? | null | Gets or sets the ID. If not set, a unique ID will be generated. | 1.0.0 | |
| Style | string? | null | Gets or sets the CSS style string that defines the inline styles for the component. | 1.0.0 | |
| Value | bool | False | Gets or sets the checked value. | 1.2.0 | |
| ValueExpression | Expression<Func<bool>>? | null | Gets or sets the expression. | 1.2.0 |
Methods #
| Name | Return type | Description | Added Version |
|---|---|---|---|
| Disable() | Void | Disables the CheckboxInput. |
1.2.0 |
| Enable() | Void | Enables the CheckboxInput. |
1.2.0 |
Events #
| Name | Return Type | Description | Added Version |
|---|---|---|---|
| ValueChanged | EventCallback<bool> | This event fires when the CheckboxInput value changes. |
1.2.0 |