documentation typo in the Event "page" example?
documentation typo in the Event "page" example?
I was interested in using the "page [.dt]" event as documented here:
http://datatables.net/reference/event/page
The event fires just as expected and I was able to do what I wanted. However, the documentation seemed to suggest calling "this.api()" but for my live instance and for this test (http://live.datatables.net/keyicuy/1/edit) calling "this.api()" results in a javascript error.
I'm very new to DataTables 1.10 (but familiar with older versions for a while) so I couldn't figure out how to access the page.info() the documentation alluded to.
I wanted to make this post in case there is a simple fix for the possible typo or more accurate way to accomplish what seemed intended in the "Example" part of the page.
** On a side-note, I was trying to bring my 1.9 development into 1.10 standards and found every aoColumnDefs=>columnDefs corollary for fields I had used except for aoColumnDefs[0].iDataSort. If "iDataSort" is still the appropriate object to declare under columnDefs (for filtering a viewable column via a hidden column), could you add it to the documentation? If I missed the appropriate new name, what is it?
** Second side-note: Is there a standard way for knowing what triggered the "page" event? I crawled what seemed to be the whole object tree of e and settings without finding the original reason/instigation for the event. Everything seemed to point to the table element and object as a whole (i.e., e.currentTarget, e.delegateTarget, and e.target were all references to the table).
The documentation is great in general and thank you for DataTables!