53 questions
0
votes
0
answers
92
views
Unable to load List.js accurately while loading data using AJAX
I'm working on a pagination feature using List.js for my email page on a website where emails are loaded using PHP, MySQL, and AJAX. I have installed List.js locally and referenced it correctly in my ...
1
vote
1
answer
158
views
Reassigned NodeList in ForEach Loop with list.js
I'm using List.js to sort a HTML list.
The JS reorders the list items in the DOM.
Now I made elements in my list clickable and i need to use the (new) index of my list items.
Super Simple HTML setup:
&...
2
votes
0
answers
922
views
List.js how to reset sorting to initial state
I'm currently working with the list.js library and its sorting method. The functionality works perfectly when you want to sort asc or desc, but is there a way to reset everything to initial state from ...
0
votes
1
answer
1k
views
list.js - Custom sort function on button click without jQuery
List.js without jQuery. It's working as supplied out of the box.
Mission:
When a 'List By Price' button is clicked, sold-out items need to display at the bottom of the sorted list - regardless of ...
-1
votes
1
answer
364
views
Why the includes() function is not working?
I would like to make a filter using List.js. I have two simple buttons: "BUY" and "SELL"
Ideally they should be used as reference to search into the value of a specific cell but I ...
3
votes
2
answers
278
views
How do I count checked checkboxes in list.js that are not currently displayed?
I have a table with checkboxes in list.js. I want to count all checkboxes that are checked, even those hidden due to the search function of the list. The method below works for only the checkboxes ...
0
votes
1
answer
352
views
Inform the number of items filtered via list.js
I start by saying that I am not a developer, but I understand the minimum of JS ... However I am not managing to solve something that in my view seems very simple (I think it is).
Using List.js I was ...
0
votes
0
answers
214
views
sorting is not working after using .load() list.js & jQuery
I am using list.min.js for sorting the table column. It works fine till data is not refreshed again from database using .load() method.
But after using .load() method my data successfully loaded but i ...
0
votes
1
answer
184
views
How to count elements by class using list.js
I am using list.js for pagination and I am trying to count items in list by category. Here i have a list 7 people, of which : 1 is born in 1970, 2 are born in 1983, and 4 are born 1993. So i am trying ...
0
votes
1
answer
1k
views
How to update one list using List.js
I am implementing List.js
List.js
https://listjs.com/docs/
I want to "UPDATE" the item by specifying the id=1.
I want an "UPDATE" feature like .myUpdate().
But the document seems ...
1
vote
0
answers
378
views
List.js is not working when search symbol
I am implementing a search function using List.js
List.js
https://listjs.com/docs/
I'm having trouble with different features depending on the version
var 1.5.0
getHtml cannot be used with item: ...
0
votes
1
answer
1k
views
Multiple Filters in list.js?
I have two columns that I want to be filterable with list.js. I tried the following code:
var options = {
valueNames: [ 'formformname', 'form-name', 'form-email','form-phone','form-branch','...
0
votes
1
answer
216
views
List.JS - Filter with comma separated values
I'm trying to create a dropdown to filter based on dates, but I would like to be able to comma separate the dates instead of initilizing each field as a separate filter, which would be slow when you ...
0
votes
1
answer
456
views
List.js - filtering by an attribute with more than 1 key/value/answer
I'm trying to filter a List.js list by a data-attribute where the result has multiple answers:
<div data-colors="red, blue, green">Item Name</div>
When I try the following it wont search ...
0
votes
2
answers
767
views
List.js not working when using an ampersand (&) in value
When using an ampersand, either explicitly as & or using HTML character codes as &, List.js breaks. Here's the code, working for the first filter, but not for the second:
$(function() ...