Datatable Checkboxes - Select all filtered
Datatable Checkboxes - Select all filtered

Hi Guys.
I have a table with check boxes for selection.
When i click Select All button, it selects all results not filtered results (search: 'applied'). Any idea how i modify this code to only find myCheckboxes in the filtered range?
===============================================
addSelected: function(component, event, helper) {
var tempIDs = [];
var getAllId = component.find("myCheckboxes");
for (var i = 0; i < getAllId.length; i++) {
if (getAllId[i].get("v.value") == true) {
tempIDs.push(getAllId[i].get("v.text"));
}
}
helper.addSelectedHelper(component, event, tempIDs);
}
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
When you say "Select All" button are you referring to this example?
https://datatables.net/extensions/select/examples/api/select.html
I see two options:
{search: 'applied'}
https://datatables.net/extensions/select/examples/api/get.html
I updated that example to show retrieving all selected rows and rows that are not filtered:
http://live.datatables.net/mivozake/1/edit
Kevin