Where are the event handlers defined for pagination, limit drop down and search box?

Where are the event handlers defined for pagination, limit drop down and search box?

arvinsimarvinsim Posts: 20Questions: 1Answers: 0
edited September 2011 in General
Ok I have integrated Datatables to my table and pagination, search box and limit drop down appears. Now my question is, where or how do I define the event handlers when these elements are clicked, selected, etc?

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    DT 1.8 doesn't have subscribable events. This is going to be part of DT 2. If you want them now, you might have to hack the source code to add event triggers.

    The DOM elements for search, pagination, display length, etc are put into divs on the page with predictable names (length is {tableid}_length, search filter is a text input found in a div named {tableid}_filter, etc) so you can attach to standard DOM events of those items.
This discussion has been closed.