How to add a checkbox near 'Column visibility' button

How to add a checkbox near 'Column visibility' button

DanaDana Posts: 28Questions: 15Answers: 1

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

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    Answer ✓

    Hi @Dana ,

    You can add your own custom controls to the dom - see this example here.

    Cheers,

    Colin

This discussion has been closed.