How can i combine 2 different API's for the same table?
How can i combine 2 different API's for the same table?
Mortennordby
Posts: 3Questions: 1Answers: 0
Hi, i want to use both the API for • Show / hide columns dynamically AND the API for • Individual column searching (select inputs) for a table. How do i combine the two javascript examples for these 2 API's to get it to work?
This discussion has been closed.
Answers
Perhaps you can give us a link to a page showing what you have tried please?
Hi Allan, and thank you for responding so quickly. I have successfully used the API for hide/show columns on a table, so that is working fine. But i also would want the API for Individual column searching(select inputs) applied to the same table, and so far i have not been able to do that because i dont understand how to combine the javascript code from each of the API's in the code. As you know the code for the Hide/show is:
and the code for Individual column searching (select inputs) is like this:
So how can these 2 codes be put together for the same table?
Sorry for the messy message, tried to format the code text, but i think i did something wrong when writing this post :-(
This section in the manual describes how to combine initialisation options into a single object.
Allan
Hi Allan and thank you for responding. I have read the section in the Manual to try to understand how to do it, but i am afraid that i need an example on how to combine these 2 for me to be able to understand how to put it together. I'm sorry to bother you, but i'm fairly new to programming and i have found that i learn best from viewing examples of code when there is something i struggle to understand. So if you would be able to post an example i would be very happy.
Kind regards Morten
If you would like a running example, that would be covered by the DataTables support options.
Allan