How do you use a plugin?
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.
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.
This discussion has been closed.
Replies
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