Colvis, is it possible to bind to table or use colvisGroup + javascript to show/hide each element?
Colvis, is it possible to bind to table or use colvisGroup + javascript to show/hide each element?
zerka
Posts: 1Questions: 1Answers: 0
I'm using colvis like this
...
"buttons": [
{
text: 'Visibility',
extend: 'colvis',
columns: ':gt(0):lt(8)',
}
]
...
This works fine but when it is activated it adds a div with class dt-button-collection before the end of the body tag, I have two tables were I'm using this, and instead of having it floating about I want to attach it as a dropdown, is there anyway to attach this at least to the table id it was activated from? or do I need to manually do it using colvisGroup for each element?
...
{
extend: 'colvisGroup',
text: 'colvis-col1',
hide: [ 1 ],
className: 'colvis-col1-hide'
},
{
extend: 'colvisGroup',
text: 'colvis-col1',
show: [ 1 ],
className: 'colvis-col1-show'
}
....
This discussion has been closed.