Hi, How to collect ID present in all Hits across p...
# community-help
s
Hi, How to collect ID present in all Hits across pagination. I am able to collect only for current page. My use case is I am implementing a data table in laravel using instantsearch.js in Livewire. And I need to implement Bulk select feature which includes Bulk Select All and Bulk Select Current Page. I have checkbox in each hit template. I am unable to find how to retrieve all Hits across all paginatin. I am aware that I can have on click logic insisde javascript
Copy code
search.on("render", function () {        const members = document.querySelectorAll("#hits .select-all-checkbox");
        members.forEach(member_selected => {
            member_selected.removeEventListener("click", handleSelectAllClick); // Prevent duplicate listeners
            member_selected.addEventListener("click", handleSelectAllClick);
        });}
What should i do in handleSelectAllClick(), I am not able to pull any information on all All Hit data?