Skip to content

Commit a9cd1a6

Browse files
committed
dispatch the value on sort events, with details allowing to read the sort+reverse method
closes #115
1 parent 89c81dc commit a9cd1a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/table.js

+1
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ function initialize(
238238
while (tbody.firstChild) tbody.firstChild.remove();
239239
appendRows(0, n = minlengthof(rows * 2));
240240
anchor = head = null;
241+
root.dispatchEvent(new CustomEvent('input', {bubbles: true, detail: {sort: column, reverse: currentReverse}}));
241242
reinput();
242243
}
243244

0 commit comments

Comments
 (0)