File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -66,8 +66,9 @@ SwipeOut is the main component, representing a single item with it's actions.
66
66
<span >{{ index }}</span >
67
67
</div >
68
68
</template >
69
- <template slot =" left" slot-scope =" { item }" >
70
- <!-- remove <template slot="left" slot-scope="{ item }"> if you dont wanna have left swipe side -->
69
+ <template slot =" left" slot-scope =" { item, close }" >
70
+ <!-- remove <template slot="left" slot-scope="{ item }"> if you dont wanna have left swipe side -->
71
+ <!-- close is method which closes an opened side -->
71
72
<div class =" swipeout-action" >
72
73
<!-- place icon here or what ever you want -->
73
74
<i class =" fa fa-cloud" ></i >
@@ -77,8 +78,9 @@ SwipeOut is the main component, representing a single item with it's actions.
77
78
<i class =" fa fa-file" ></i >
78
79
</div >
79
80
</template >
80
- <template slot =" right" slot-scope =" { item }" >
81
+ <template slot =" right" slot-scope =" { item, close }" >
81
82
<!-- remove <template slot="right" slot-scope="{ item }"> if you dont wanna have right swipe side -->
83
+ <!-- close is method which closes an opened side -->
82
84
<div class =" swipeout-action" >
83
85
<!-- place icon here or what ever you want -->
84
86
<i class =" fa fa-heart" ></i >
You can’t perform that action at this time.
0 commit comments