Open hakenr opened 1 day ago
@hakenr it actually is there, but the implementation or use is somehow awkward as it requires use of pure Blazor InputCheckbox with HxButtonGroup.
It is also well hidden in the docs.
https://havit.blazor.eu/components/HxButtonGroup#checkboxes-and-radios
There is a Bootstrap feature we haven't covered: https://getbootstrap.com/docs/5.3/forms/checks-radios/#toggle-buttons
There is a pull request #879 from @mmonteagudo that proposes an implementation.
There are still questions to resolve:
How does this coexist with Switches, which we implemented using the widely-used
HxSwitch
component (derived fromHxCheckbox
)? Should the toggle-button be another derivative ofHxCheckbox
, or are checkbox/switch/toggle-button variants of the basicHxCheckbox
component that should be selectable via aVariant=CheckboxVariant.Regular|Switch|ToggleButton
parameter? The enum-based variant would likely allow us to configureHxCheckboxList
to handle rendering with a single parameter.How do we handle the optional button group?
There are also Button plugin on/off buttons with similar behavior. Should we consider these as a separate feature that doesn't affect our check/radio boxes implementation, or is there potential overlap (e.g.,
HxCheckboxVariant.ButtonPlugin
)?