How do you use a plugin?

How do you use a plugin?

elmezieelmezie Posts: 7Questions: 0Answers: 0
edited September 2009 in Plug-ins
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.

Replies

  • allanallan Posts: 63,676Questions: 1Answers: 10,497 Site admin
    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.