How to add a checkbox near 'Column visibility' button
How to add a checkbox near 'Column visibility' button
Given this scenario, where I have added the 'Column visibility' button next the "Show [X] entries" dropdown:
dom: 'lBfrtip',
buttons: [{
extend: 'colvis',
columns: ':gt(6)',
className: 'shButton'
}]
I was wondering if it is possible to add a checkbox next to this button with a message like 'Hide data>5' and based on the change event to call a function that should do something.
This question has an accepted answers - jump to answer
Answers
Hi @Dana ,
You can add your own custom controls to the
dom
- see this example here.Cheers,
Colin