Bug: Select extension - default selection style documentation
Bug: Select extension - default selection style documentation
In the Datatables select extension, the default style of selection, configured by the select.style
option, is os
. However, when an options object is provided for the select
option, the default style of selection changes to api
if not specified in the object. This is confusing behavior, and is not documented.
For example, on the documentation page for select
, the following example is given:
$('#example').DataTable( {
select: {
info: false
}
} );
If you use this snippet, it appears not to work - this is because the selection style has been set as 'api'
and thus, rows can no longer be selected by clicking on them.
See this jsbin for an example of the confusing behavior.
This question has an accepted answers - jump to answer
Answers
Very good point - thank you for letting me know about this. I completely agree. I'll have this fixed for the next 1.x release.
Regards,
Allan