How to add some buttons to the coloums?
How to add some buttons to the coloums?
bikai
Posts: 21Questions: 12Answers: 0
Table coloums are got by Ajax, i need some functions like this:
each coloum has a button, i can close the coloum by click on the button.
How to achieve this?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This page will show you how to hide and show columns dynamically.
https://www.datatables.net/examples/api/show_hide.html
You can also make these into buttons if you want to. If you want to use the buttons extension, which I recommend, it's much easier and can be found here:
https://www.datatables.net/extensions/buttons/
@Modgility Thanks for your answer, I have much more than 50 coloums, what is the best way to show this buttons?
Possibly with multi-column layout like this example.
Allan
@allan thanks, can you help me with another question here?