We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6f8c8 commit 34a8a81Copy full SHA for 34a8a81
1 file changed
docs/api/1-Options.md
@@ -31,6 +31,17 @@ exampleTable = document.querySelector('#exampleTable')
31
Sortable.initTable(exampleTable)
32
```
33
34
+#### Events
35
+
36
+An `CustomEvent` called `Sortable.sorted` is fired whenever a sort is completed.
37
38
+Here’s an example of how you might listen to this event:
39
40
+```coffeescript
41
+exampleTable = document.querySelector('#exampleTable')
42
+exampleTable.addEventListener 'Sortable.sorted', -> console.log '#exampleTable was sorted!'
43
+```
44
45
#### Sorting options
46
47
##### `data-value`
0 commit comments