Inside my Ionic application, Let's say I have an ion-list with some ion-items inside like this:
<ion-list>
<ion-item>
I love kittens!
<ion-option-button class="button-positive">Share</ion-option-button>
<ion-option-button class="button-assertive">Edit</ion-option-button>
</ion-item>
// Some other items in the list
</ion-list>
I want to programmatically (e.g click of a button), open up the option menu on all the items. Same effect as if the user has swiped all the items to the left simultaneously.
I was not able to find any documentation on this. How can I achieve that?
closeOptionButtons()
but it's quite the opposite of what I'm trying to achieve. – Sobhanclass="item-options invisible"
you might want to try to get rid of theinvisible
programatically – niklasinvisible
class didn't generate the desired effect. As a matter of fact, when i removed it, nothing changed: the button stayed hidden. – Sobhan