<?xml version="1.0" encoding="UTF-8" ?>
<dt-example table-type="html" order="1">
<css lib="datatables tabletools" />
<js lib="jquery datatables tabletools">
<![CDATA[
$(document).ready(function() {
$('#example').DataTable( {
dom: 'T<"clear">lfrtip',
tableTools: {
"sRowSelect": "single"
}
} );
} );
]]>
</js>
<title lib="TableTools">Row selection - single row select</title>
<info><![CDATA[
As well as providing a button toolbar, TableTools provides everything needed to have selectable rows in the table. TableTools has four row selection modes of operation:
* `none` - Default, where no user row selection options are available
* `single` - A single row can be selected
* `multi` - Multiple rows can be selected simply by clicking on the rows
* `os` - Operating System like selection where you can use the shift and ctrl / cmd keys on your keyboard to add / remove rows from the selection.
This example shows the `single` select option.
]]></info>
</dt-example>
|