In one project, I wanted to show only the first 5 elements of a list. Therefore, the hidden_mode was not suitable and here is what I did: $('#adh-other-lamps>li:not(:lt(5))').hide();.
But when someone searches, and delete the search string, the whole list shows up. Could you please add a callback for when it goes back to initial state (empty input)? Or let me know how I could achieve this? Or perhaps, modify the hidden_mode to allow to specify how many items to show (instead of boolean).
Hi @vdw,
In one project, I wanted to show only the first 5 elements of a list. Therefore, the hidden_mode was not suitable and here is what I did:
$('#adh-other-lamps>li:not(:lt(5))').hide();
.But when someone searches, and delete the search string, the whole list shows up. Could you please add a callback for when it goes back to initial state (empty input)? Or let me know how I could achieve this? Or perhaps, modify the
hidden_mode
to allow to specify how many items to show (instead of boolean).Cheers