List swipe buttons


#1

I’m working with a list and I want each item swipe to show options. It’s ok through here, but when I tap on one option I want to close the buttons again – how can i do this in my controller?

$scope.listButtons = [{
Text: "Download",
Type: "button-assertive",
onTap: function(file){
//after tap hide buttons code here..
}

#2

I would also like to know how to close the slider in the function.


#3

+1 to this. It will be nice if it close the swipe automatically when there is a tap on other area out of the buttons, including the current list item.


#4

That’s how the standard iOS slide list controls work (see Mail.app on iOS 7).

I’d also like to know how to programmatically close the slider.


Issues in accessing ng-model while using ion-list options-buttons in Todo Tutorial
#5

Anyone ever figure this out?


#6

Opened a feature request ( Issue 887 ) for this : https://github.com/driftyco/ionic/issues/887


#7

Realy thanks calendee!


#8

FYI : A very soon to be released new nightly feature has this :

$ionicListDelegate.closeOptionButtons()