Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Checkboxes] Cycling three-state checkboxes #5917

Closed
hartwork opened this issue May 13, 2020 · 1 comment
Closed

[Checkboxes] Cycling three-state checkboxes #5917

hartwork opened this issue May 13, 2020 · 1 comment

Comments

@hartwork
Copy link

Hi! Thanks for sharing material-components-web as software libre, it's a great gift to the community!

While material-components-web does have intermediate checkboxes, I would need a version cycling through all three states — checked, indeterminate, unchecked, checked, indeterminate, .. — with each click and also send indeterminate (or a custom value) rather than on when the surrounding form is submitted to support "maybe" for an answer in my mini-Doodle jawanndenn. I'd be willing to switch jawanndenn from Materialize to material-components-web just for that feature. I have implemented a cycling tristate checkbox as a Vue.js component recently that supports form submission so I know it can be done, in general.

Is this something you envision inside our outside of core material-components-web?

Thanks and best

Sebastian

@allan-chen
Copy link
Collaborator

Hi Sebastian,

Thank you for your question! The three-state-cycling checkbox doesn't appear to be part of the spec. As such, we will likely not be able to support it as part of the core library. In this case we recommend that you implement a custom one that contains these state transitions, as you have done above. Let me know if you have any further questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants