-
Notifications
You must be signed in to change notification settings - Fork 237
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
flip element #204
Comments
Sounds good to me, but perhaps a better name? |
toggle(), switch(), raise(), to_front() or like he said also swap()? |
IMO |
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? |
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. |
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. |
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 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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?
The text was updated successfully, but these errors were encountered: