select_single.xml 992B

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <dt-example table-type="html" order="1">
  3. <css lib="datatables tabletools" />
  4. <js lib="jquery datatables tabletools">
  5. <![CDATA[
  6. $(document).ready(function() {
  7. $('#example').DataTable( {
  8. dom: 'T<"clear">lfrtip',
  9. tableTools: {
  10. "sRowSelect": "single"
  11. }
  12. } );
  13. } );
  14. ]]>
  15. </js>
  16. <title lib="TableTools">Row selection - single row select</title>
  17. <info><![CDATA[
  18. 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:
  19. * `none` - Default, where no user row selection options are available
  20. * `single` - A single row can be selected
  21. * `multi` - Multiple rows can be selected simply by clicking on the rows
  22. * `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.
  23. This example shows the `single` select option.
  24. ]]></info>
  25. </dt-example>