set select = false onclick
set select = false onclick
Ghost108
Posts: 19Questions: 7Answers: 0
Hi all !
I have this datatables config:
var table = $('#table').DataTa
select: {
selector: 'td:first-child',
style: 'multi'
}
});
Is there a way to set select = false with a button onclick function ?
Answers
Yep, you can do something like this:
It's using an undocumented feature of
select.items()
- setting the selection type to unsupported type, which just disables the selection!Colin