How to prevent the ion button from showing in IonicFramework?

I am using a different list on the same page, each list has an Option button, you can see my code: [http://codepen.io/harked/pen/WvMgXg][1]

If we check the first card, it will show a select button. If we check the second card, it will also show a select button. Is there a way to prevent Option-Button from showing while another is being displayed on another map?

I mean the problem is like this picture: http://www.nanonimos.com/IonOption.jpg

Anyone? It would be very grateful.

+3


source to share


2 answers


It doesn't look like Ionic has a way to do this right now. We want the listener on the options buttons to show up, at which point you can close all the others, but this listener doesn't exist.



You can create custom functions and listen for swipe events on each list item, but that would probably be a bit of a bug. Alternatively dig into the framework and try and fire a custom event on the same trigger as Ionic.

0


source


You probably have ng-repeat when working with lists in Ionic. You can easily disable Option buttons using ng-show as in this coded.



[http://codepen.io/anon/pen/vORyaz?editors=101']

      

0


source







All Articles