Identify Responsive settings after init?
Identify Responsive settings after init?
mintly
Posts: 1Questions: 1Answers: 0
I'm working on excluding any Responsive control columns from a .columns() selector, and I'm having some trouble dynamically determining what the control column is, or how to tell if it even has one.
For example, if this is the table:
$('#example').DataTable({
responsive: {
details: {
type: 'column',
target: -1
}
},
columnDefs: [ {
className: 'control',
orderable: false,
targets: -1
} ]
});
How can I access .responsive.details after init?
This or another method of finding a control column in any given DataTable would help me immensely. Thank you!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @mintly ,
You can use jQuery selectors for that, something like this:
Cheers,
Colin