It is not clear in the documentation the use of the close and open method for ion-item-sliding.
I found some examples, but many of them are old and predate Ionic 5, include in this forum.
Where can I get a practical example in angular, of using the “close” and “open” methods of “ion-item-sliding” with the Ionic 7 version?
Thank you.
The open
and close
methods programatically open and close the start or end option buttons of the ion-item
. I cannot think of a use case you would need to use these. The user would typically drag the item left or right to reveal the buttons.
1 Like
Thanks for responding @twestrick.
As incredible as it may seem, there is a case.
I will use it to simulate the opening and closing of ion-item-sliding when the list is opened.
As incredible as it may seem, most people (users, including the elderly) are not accustomed to using lists that slide showing their functionalities (buttons).
Users have a habit of removing Apps that they do not know how to use because they are unaware of their functionalities.
This demo (drag right and left) will only be shown once on the screen for the user, I managed to do this a few minutes ago, programmers don’t have the habit of putting themselves in the user’s shoes, luckily I have this habit.
Once again, thank you for your time.
1 Like