Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New - experimental: Add custom events into DataTables - the events av…
…ailable are "draw", "filter", "sort", "page" and "xhr". These are very useful for knowing when these actions happen and binding an action to them. Useful for plugin developers and developers using DataTables both. Note that it would be possible to put in a _LOT_ more custom events ("predraw" etc) which is why this feature is currently considered experimental. It will not be documented in the DataTables documentation until this has stabilised (likely 1.9 or 2.0) and a scheme has been fully confirmed for these events, but I want to include them now to see if and how they are used by developers to see them or talk to me (as this has been asked for a few times). I'm also slightly concerned about the overhead that would be generated if there were custom events for everything.
- Loading branch information
8a8ca1e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you, it's very useful
8a8ca1e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent - good to hear :-). Personally I love this as well, but want to draw up a proper plan to implement it well and with enough flexibility that it can do all that is needed, but with as little overhead as possible. But it's a start... :-)
8a8ca1e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, it's really really good feature, because I had to rewrite Datatables internals (_fnFeatureHtmlFilter) to handle selectbox change event to trigger Datatables redraw. I'm looking forward for #trigger functionality across the whole engine. thank you again!