Open pierre1012 opened 2 years ago
The Indeterminate state would be in the center, true left and false right.
Shouldn't it be: false left, true right?
You are right! I've corrected it. Thanks for the heads up.
I don't know what users think, but im totally against of it. Users can use slider if they want 3 states. Thumb-in-the-middle switch not sound user friendly
Apparently, this feature request emerged from users request. Our team also had many requests about this feature and it's in our backlog, so there's certainly a need for this.
Also, it makes migrating one's app from checkboxes to the more modern switches a lot easier when the switch can handle tri-state.
I don't know what users think, but im totally against of it. Users can use slider if they want 3 states. Thumb-in-the-middle switch not sound user friendly
We do not require exactly a 3 state switch.
To summarize our situation:
I hope this clarifies what we are looking for.
https://m3.material.io/components/switch/guidelines
Material clearly says switch is design for true or false selection. Material even doesn't suggest use switch on opposing options, instead of they offer button group.
I also think switch is not design for "swipe", its a "click or touch" control. Imagine we have null valued switch, so user swipe left to the switch for false (because if user touch it, it goes to true)? It's a slider thing. Switch's power is its simplicity, just touch and make immediate change.
For your 4.th argument, if you find slider solution is not pretty, this also means switch is not pretty for this aim 🙂
And the last, i think if we can't give a default answer to a question, switch doesn't fit to use.
Yes, Material clearly says that, but Mudblazor says: Blazor Component Library based on Material design, so why should we not improve upon if possible and there are use-cases for it?
Perhaps we should ask for a new <MudTriStateSwitch/>
component then.
It sounds more like a "community" or "extension" component 🙂
It sounds more like a "community" or "extension" component 🙂
Perhaps a better fit yeah.
For anyone desiring this feature, here's a possible alternate solution to this feature request, I made a basic pushbutton style example that acts like it is one control.
Feature request type
Enhance component
Component name
MudSwitch
Is your feature request related to a problem?
Not related to a problem, our users are often requesting this feature to a point that they convinced us to open this Issue. The switch is a popular component and is more preferable than the checkbox.
You would make a lot of people happy if this feature was available. :)
Describe the solution you'd like
We would like a similar feature for the MudSwitch component which the MudCheckBox already has related to indeterminate state.
Example:
The Indeterminate state would be in the center, true right and false left.
Have you seen this feature anywhere else?
Describe alternatives you've considered
No response
Pull Request
Code of Conduct