listjs

Using list.js sort and search not working

泄露秘密 提交于 2020-01-11 05:20:35
问题 This is my first time using list.js and for some reason it is not working. Here is a live example. http://hartslogmuseum.com/bookhjr10/test.php here is what its supposed to do http://listjs.com/examples And here is my code. I want to search only the name. <div class="table-responsive"> <div id="catalog"> <input class="search" placeholder="Search" /> <button class="sort" data-sort="name"> Sort Name </button> <button class="sort" data-sort="cat"> Sort Category </button> <h2> Catalog </h2>

Why are some rows disappearing when I sort or filter listjs table

南楼画角 提交于 2020-01-05 12:17:39
问题 I'm writing a webapp that reads from a geojson file and also out of Google Fusion Tables. The geojson works fine in the app, which adds each item to a map and also as a row in a table for searching, sorting and filtering. But I'm having a strange issue that I'm having trouble diagnosing, where the rows get added, but I think the listjs components aren't functioning properly. I'm stuck, and need some help! Here's the the page: http://alexgleith.github.io/SSSPros/ Here's the code: https:/

Why are some rows disappearing when I sort or filter listjs table

故事扮演 提交于 2020-01-05 12:17:05
问题 I'm writing a webapp that reads from a geojson file and also out of Google Fusion Tables. The geojson works fine in the app, which adds each item to a map and also as a row in a table for searching, sorting and filtering. But I'm having a strange issue that I'm having trouble diagnosing, where the rows get added, but I think the listjs components aren't functioning properly. I'm stuck, and need some help! Here's the the page: http://alexgleith.github.io/SSSPros/ Here's the code: https:/

list.js sorting not working

南楼画角 提交于 2019-12-25 01:15:38
问题 I am trying to sort (name, title, label, view) data using list.js. I have installed list.js using bower and mentioned the source in the html template <script src="/static/vendors/list.js/dist/list.min.js"></script>. I am exactly trying to replicate this codepen but with angular. Note: I am aware about angular sorting! Problem: Sorting and view change doesn't seems to work <div id="artists"> <input class="search" placeholder="Search" /> <button class="sort" data-sort="artist-name">Sort by name

dropdown <select> for list.js

試著忘記壹切 提交于 2019-12-10 19:58:08
问题 list.js is using search box as default. Anyone know, how to use dropdown selection box for list.js? I have used: Javascript: <script type="text/javascript"> $('#tpi').change(function () { var selection = this.value; //grab the value selected var options = { valueNames: [ 'name', 'type', 'tpi' ] }; var userList = new List('users', options); }); </script> HTML <select name="tpi" id="tpi"> <option selected="selected" value="tpi">TPI</option> <option value="11">11</option> <option value="14">14<