close menu after action in button bar
close menu after action in button bar
gmeriaux
Posts: 2Questions: 1Answers: 0
Hello,
I would like extend this example to close menu after action : https://datatables.net/extensions/buttons/examples/initialisation/collections-sub.html
In the example, I would like that if the user click on "Toggle salary", it toggle the salary column but also close my menu button.
Is it possible to add this function in the action function of my button?
Thanks in advance for your answers.
This discussion has been closed.
Answers
Hello,
I found my answer if it can help somebody, there is one option "autoclose" to set "true".
https://datatables.net/reference/button/collection