Skip to content

Commit 0bd6bfd

Browse files
committed
update readme
1 parent b8e15e2 commit 0bd6bfd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ SwipeOut is the main component, representing a single item with it's actions.
6666
<span>{{ index }}</span>
6767
</div>
6868
</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 -->
7172
<div class="swipeout-action">
7273
<!-- place icon here or what ever you want -->
7374
<i class="fa fa-cloud"></i>
@@ -77,8 +78,9 @@ SwipeOut is the main component, representing a single item with it's actions.
7778
<i class="fa fa-file"></i>
7879
</div>
7980
</template>
80-
<template slot="right" slot-scope="{ item }">
81+
<template slot="right" slot-scope="{ item, close }">
8182
<!-- remove <template slot="right" slot-scope="{ item }"> if you dont wanna have right swipe side -->
83+
<!-- close is method which closes an opened side -->
8284
<div class="swipeout-action">
8385
<!-- place icon here or what ever you want -->
8486
<i class="fa fa-heart"></i>

0 commit comments

Comments
 (0)