jQuery DataTables Toggle selected rows with a button
<p>I'm trying to toggle only selected rows within a table using a button but, so far, all I've got is to filter only those in the current page within a collection of pages. Could you please help me what to do?</p>

<pre><code>{
  text: '&lt;i class="fa fa-list" style="color:orange;"&gt;&lt;/i&gt;',
  action: function (e, dt, node, config) {
      //This works only in current page
      $('#tblUsers tbody tr').not('.selected').toggle();
      //This doesn't work at all
      tableUsers.rows({ selected: true }).data().draw();
  },
  className: 'vcaBtnTable'
},
</code></pre>