# Methods
# decide
- Argument:
type
- Type:
String
- Available:
'like'|'nope'|'super'|'down'
<vue-tinder ref="tinder" ... >
...
<vue-tinder>
export default {
...
methods: {
like() { // Swipe right
this.$refs['tinder'].decide('like')
},
nope() { // Swipe left
this.$refs['tinder'].decide('nope')
},
superLike() { // Swipe up
this.$refs['tinder'].decide('super')
},
down() { // Swipe down
this.$refs['tinder'].decide('down')
}
}
}
# rewind new
- Argument:
rewindList
- Type:
Array
As long as you are guaranteed to pass in an array, you can rewind one or more as needed.
<vue-tinder ref="tinder" ... >
...
<vue-tinder>
export default {
...
methods: {
rewind() {
this.$refs['tinder'].rewind([{id: 1}, {id: 2}])
}
}
}