How to add a checkbox near 'Column visibility' button
How to add a checkbox near 'Column visibility' button
![Dana](https://secure.gravatar.com/avatar/9a0e6158703bfbaf6201b8936ac99a76/?default=https%3A%2F%2Fvanillicon.com%2F9a0e6158703bfbaf6201b8936ac99a76_200.png&rating=g&size=120)
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