SpeedzZ
February 9, 2014, 10:25pm
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..
}
5 Likes
I would also like to know how to close the slider in the function.
+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.
jough
February 26, 2014, 8:32pm
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.
Anyone ever figure this out?
Opened a feature request ( Issue 887 ) for this : https://github.com/driftyco/ionic/issues/887
FYI : A very soon to be released new nightly feature has this :
ionic-team:master
← ajoslin:ion-list-refactor
opened 09:24PM - 02 Apr 14 UTC
$ionicListDelegate.closeOptionButtons()
5 Likes