Replies: 8 comments
-
Sounds good to me, but perhaps a better name? |
Beta Was this translation helpful? Give feedback.
-
toggle(), switch(), raise(), to_front() or like he said also swap()? |
Beta Was this translation helpful? Give feedback.
-
IMO |
Beta Was this translation helpful? Give feedback.
-
Let's see... exchange, switch, interchange, change, swop, alternate, substitute, shift, reverse, transpose, quid-prp-quo (haha!!), replacement, displace... I think I'd go for "alternate". Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Sounds good to me, I liked raise()/to_front() and to_back() but I see that maybe those would be more appropriated for the single child, not for the deck container. I have a feeling that controls like this, which are somewhat derivatives should stay in some gallery but outside the lib, as some custom control snippets ready to use (or some "elements extension" IDK), or there would be many other alternatives that could lead to some kitchen sink thing, but I maybe be wrong for this case. |
Beta Was this translation helpful? Give feedback.
-
I think that this use-case (deck of size 2) is quite common and could get a better interface to flip the side and explicitly change to front and back. Now my thoughts about the names:
My favourites are toggle, alternate and flip. |
Beta Was this translation helpful? Give feedback.
-
I do agree in principle that the library should be keep as simple as possible. Yes, the purpose of the gallery is indeed to be a collection of loose derivatives and composed elements. This on the other hand, is quite common. It would even probably be better to not derive from deck. The |
Beta Was this translation helpful? Give feedback.
-
Closing this now, cleaning up. I added this to #229 , probably a low-priority task, for now. I'll be prioritizing the feature list in #229. |
Beta Was this translation helpful? Give feedback.
-
An idea that come to my mind after having the seeing the same element logic multiple times in my project:
flip()
to easily swap active elementWhat do you think?
Beta Was this translation helpful? Give feedback.
All reactions