DataTables logo DataTables

via Ad Packs
How do you use a plugin?
  • Im having trouble actually implementing plugins. For example, I copy the code for the Filter Delay plugin
    I paste the code on my page after the code oTable object has been created. Then i run the example callback for the plugin.

    But when i do this, it appears to recreate the sDom object or something.
    Two search boxes now appear on the page, and two dropdown boxes for the number of results on the page.
  • allanallan
    Posts: 15,551
    Hi elmezie,

    There are a couple of examples of how to use plug-in code with DataTables:

    API: http://datatables.net/examples/api/plugin_api.html
    Sorting: http://datatables.net/examples/api/sorting_plugin.html
    Others: http://datatables.net/examples/

    Hopefully that will steer you in the right direction. Also regarding the duplicate drop down boxes etc, that sounds like you are re-initialising your table - this shouldn't be done. Have a look at the example code, and post back if you have any questions.

    Regards,
    Allan
This discussion has been closed.
← All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.

In this Discussion