This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 146
What is the purpose of TDCardDelegate ? #43
Comments
As you might have expected, you can use it to programatically swipe cards. I use it to snap the card back under certain conditions like this: var card = TDCardDelegate.getSwipeableCard($scope);
card.snapBack(); Note: I am using ionic beta 13 currently |
Upon upgrading to beta 14, I had to remove my CardCtrl and move the content to my view controller. By doing so I was not able to get the swipeable card. |
I've been taking a look into TDCardDelegate also. Any idea how the snippet below from /**
* Swipe a card out programtically
*/
swipe: function() {
this.transitionOut();
} |
That is part of the "Card" itself. It is a SwipeableCardView so no param is needed. |
Related issue #49 |
How can the TDCardDelegate functionality be used from outside the element itself? Is there an |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I just played with this ion (thanks a lot guys, it's very nice) but can't figure out what is the purpose of TDCardDelegate service.
Regarding to methods name, it seems to be intended to manipulate cards (which would be really nice) but does not seems to work...
Moreover, I don't understant what $scope to pass as argument...
Is there a way to programatically swipe cards left/right ? Like in tinder.
The text was updated successfully, but these errors were encountered: