You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a feature request, and I havent seen it in any other slider, so far.
It would be nice to have methods that allow us to enable and disable, or show and hide slides from the slider based on an index, just like the .remove() method works.
Useful cases would be, for example right now I am building a cart that has a carousel containing upsell items, when an item is added to the cart, it is removed from the upsell, but if the user removes it from the cart, it should go back to the upsell.
So for example, when I want to hide a slide .hide(index)
When I want to show it again .show(index)
I successfully implemented the desired behavior, by removing and adding items in the carousel, but that includes me searching in products arrays and figuring out which items are missing, which items are added and so on, not that it is extremely hard to implement, but having the option to show/hide specific item from the carousel, would be better and easier on the code of the implementer.
This discussion was converted from issue #207 on October 09, 2021 14:42.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have a feature request, and I havent seen it in any other slider, so far.
It would be nice to have methods that allow us to enable and disable, or show and hide slides from the slider based on an index, just like the
.remove()
method works.Useful cases would be, for example right now I am building a cart that has a carousel containing upsell items, when an item is added to the cart, it is removed from the upsell, but if the user removes it from the cart, it should go back to the upsell.
So for example, when I want to hide a slide
.hide(index)
When I want to show it again
.show(index)
I successfully implemented the desired behavior, by removing and adding items in the carousel, but that includes me searching in products arrays and figuring out which items are missing, which items are added and so on, not that it is extremely hard to implement, but having the option to show/hide specific item from the carousel, would be better and easier on the code of the implementer.
Beta Was this translation helpful? Give feedback.
All reactions