Trying to define the table.select.style after initialization unsuccessfully
Trying to define the table.select.style after initialization unsuccessfully
adi_b
Posts: 1Questions: 1Answers: 0
Hi,
I added a code in order to define the style and way of selecting items in a table,using the following code:
var table = $('#myTable').DataTable();
table.select.style( 'os' );
table.select.items( 'cell' );
However, I get an error: " Cannot read properties of undefined (reading 'style')".
I can't understand why the select property is undefined.
Do you have any idea?
Thanks,
Answers
I'm guessing you haven't included the select library (js/css) files. You can use the [Download Builder to obtain them. I placed your code here and it works:
http://live.datatables.net/hoziyomo/1/edit
If you still need help please provide a link to your page or a test case replicating the issue.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin