vikramlearning / blazorbootstrap

An Enterprise-class Blazor Bootstrap Component library built on the Blazor and Bootstrap CSS frameworks.
https://docs.blazorbootstrap.com/
Apache License 2.0
670 stars 32 forks source link

Switch component : disabled state cannot be set with variables #185

Closed DutchJaFO closed 1 year ago

DutchJaFO commented 1 year ago

This does not work as expected as 'Disabled' parameter ignored.

<Switch Label="Show details" Disabled="@MyDisabledState">

gvreddy04 commented 1 year ago

@DutchJaFO Thank you for using our components.

Please use Enable() or Disable() methods to change the disable behaviour of the Switch. In the feature will make all the form components consistent.

Switch: https://demos.blazorbootstrap.com/form/switch#disable

image

Other References:

DutchJaFO commented 1 year ago

Thanks for the example. It's ugly as I'm having to add a reference to the actual components, but it works.

gvreddy04 commented 1 year ago

@DutchJaFO Will make this consistent in the next release.