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

Toggle between three options #9

Closed
dowanx opened this issue Jul 13, 2017 · 2 comments
Closed

Toggle between three options #9

dowanx opened this issue Jul 13, 2017 · 2 comments

Comments

@dowanx
Copy link

dowanx commented Jul 13, 2017

Is there a way to toggle through three options?

Here is my HTML

<div class="pretty plain toggle">
                  <input type="checkbox"/> 
                  <label><i class="mdi mdi-thumb-up success"></i> PM</label>
                  <label><i class="mdi mdi-thumb-up success"></i> Planned WO</label>
                  <label><i class="mdi mdi-thumb-down danger"></i> Unplanned WO</label>
</div>
@lokesh-coder
Copy link
Owner

lokesh-coder commented Sep 3, 2017

I am sorry @dowanx , I dont think that is possible without JS. :(

Even with JS, to achieve this, checkboxes to be overlapped one top of another, to give a impression as one button ( like showing one hiding others ) . And it might create bit confusions when using with different Javascript libraries.

@lokesh-coder
Copy link
Owner

Closing now, But feel free to open if you got any questions.

And, I have updated the repo to version 3 which has a feature to add third icon for indeterminate state. It might give you an idea. Here's the documentation

Thanks!

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

No branches or pull requests

2 participants