DataTables custom events?
DataTables custom events?
benekastah
Posts: 3Questions: 0Answers: 0
Does DataTables emit any of it's own events? I would like to be able to do something like this:
[code]
var dt = $('#someTable').dataTable()
.bind('sort', function () { /* do something... */ })
.bind('change', function () { /* do something... */ });
[/code]
There are a few events that would be especially helpful (if they exist):
1. change: Whenever data is changed or added, display order is modified, page changes, etc.
2. sort
3. page
[code]
var dt = $('#someTable').dataTable()
.bind('sort', function () { /* do something... */ })
.bind('change', function () { /* do something... */ });
[/code]
There are a few events that would be especially helpful (if they exist):
1. change: Whenever data is changed or added, display order is modified, page changes, etc.
2. sort
3. page
This discussion has been closed.
Replies
Regards,
Allan
But is there any way to access to a sort event between the click on the and before the 'draw' event ?
Certainly I'm sure that other events beyond the 4 I've got at the moment will be useful, so I'll keep a record of what people would find useful and add them when it becomes clear that they would be useful.
Allan