how do i add plug-ins
how do i add plug-ins

Hi Allan,
Noob question : how do i add plug-ins into my code ??
Do i just copy them into datatable js file and use them as per usage directions ?? Do I need to add the function name somewhere else ??
Thanks
Noob question : how do i add plug-ins into my code ??
Do i just copy them into datatable js file and use them as per usage directions ?? Do I need to add the function name somewhere else ??
Thanks
This discussion has been closed.
Replies
Here is an example of how to add an API plug-in function: http://datatables.net/examples/example_plugin_api.html
And there is one showing custom type detection and sorting: http://datatables.net/examples/example_sorting_plugin.html
You can put the plug-in functions anywhere in your script file(s) _after_ the DataTables code.
Does that help?
Allan
To do this, please see the documentation: http://datatables.net/usage/columns#sType
Regards,
Allan