Replies: 3 comments 1 reply
-
Toggle's only designed for a single element currently. |
Beta Was this translation helpful? Give feedback.
-
Hmm interesting. I am looking at this now and seeing if I can make something similar work. In my case, I have a search form with simple fields and advanced fields. Similar to the example in this dribble. Essentially I want:
https://dribbble.com/shots/13634106-Admintory-Order-Details Whilst toggle can only have one element, could toggle and dropdown be used together so that one click executes two events? |
Beta Was this translation helpful? Give feedback.
-
Also for anyone else trying to implement this functionality, my current implementation of this all sits inside a form (ransack's What this means is that the buttons clicked to toggle each other need to have the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use
Toggle
to switch which icon is hidden in a button when the button is clicked. Even if I start with Icon A visible and Icon B hidden, toggle synchronises them on first run.Does
Toggle
support toggling two items with opposing values? If not, is this a valid use case that's worth adding support for?Beta Was this translation helpful? Give feedback.
All reactions