- [Feature] Make it possble to add event handlers on init
new List('listId', { searchComplete: function(list) {} })
. - [Bugfix] Include reference to List when initializing plugins. Fix for require.js which don't have a global reference to List.
- [Bugfix] Fix index async
- [Bugfix] Fix add async
- [Bugfix] Update
javve/events
version which fixes critical bugs in Safari for PC and PhantomJS (which makes the command line tests work again). - [Bugfix] Clear search when clicking in the HTML5 clear button.
- [Misc] Add History.md file for changelog instead of having it at Listjs.com.
- [Change] The sorting API is update so it looks like this
listObj.sort('name', { order: "asc "})
andlistObj.sort('name', { order: "desc "})
instead orlistObj.sort('name', { desc: true/false })
. - [Feature] Added support for default sort function `new List('id', { sortFunction: function(itemA, itemB) { .. }})</
- [Feature] Adding
data-order="asc/desc"
to a sort button makes that button only sortasc
ordesc
, ie no to - [Bugfix] Fix
grunt watch
bug. - [Bugfix] Remove sorting when searching and filtering.
- [Bugfix] Fix sorting and search when using pagiation plugin
- [Bugfix] Fix error that broke the lib in IE8.
- [Feature] Add more events and enable to add them on initialization.
- [Feature] Add support for Component.js, Bower, RequireJS and CommonJS
- [Feature] Make it possible to remove event handlers by
.off('event', handler)
- [Improvement] Many new tests
- [Improvement] Paging plugin default classes and structure now correspons to Twitter Bootstraps pagination.
- [Improvement] Make sorting case-insensitive (thanks @thomasklemm)
- [Improvement] Add item._values for direct access to a items values. Simplifies debugging. Note: Always use item.values() when interacting with the values.
- [Bugfix]
.add(items, callbak)
withcallback
set does no longer add an extra item. - [Bugfix]
templater.set()
no longer is called twice in atemplater.get()
call. - [Bugfix] Fix error when trying to sort
undefined,null,etc
values. - [Bugfix] Fix error when trying to search
undefined,null,etc
values. - [Bugfix] Fix issue #51, problems with filters/search + paging.
- [Misc] Almost completely rewritten codebase and started using Component
- [Misc] Moved the website into another repo called list-website
- [Misc] Add documentation for searching in specific columns.
- [Change]
listObj.get('valueName', value)
does now always returns an array. Previously it return an object if only one item matched and null if no match was found. - [Change] The default sort order is now
asc
instead ofdesc
. - [Change] Syntax for searching in specific columns are now
.search('val', [ 'columnName', 'columnName2' ])
instead of.search('val', { columnName: true, columnName2: true })
. - [Change] Move plugins into seperated repos: github.com/javve/list.pagination.js and github.com/javve/list.fuzzysearch.js
- [Change] Plugin initiation have changed. See getting started with plugins
- Fuzzy Search plugin,
.filter()
changes and bug fixes Read more »
- Lots of updates and interesting features. Read more »
.filters()
,.sort()
and.search()
now deped on each other. If the list is filtered and then there is a search, the items hidden by the filters will stay hidden etc..filter()
is the only way to reset filter..filter(false)
does not work anymore.
- Added function
.clear()
that removes all items from the list - Changed the sort function to be based on
data-sort
instead ofrel
- When sorting one category, all sort-related classes will be removed from the other sort buttons
- Updated
.sort(valueName, sortFunction)
to.sort(valueName, options)
, se more info in the documentation
- Sorting is now indicated by class
asc
ordesc
at sorting buttons - Added three new small helper functions
hasClass(element, class)
,addClass(element, class)</ and
removeClass(element, class)`
- Added possibility to reverse sort the list
- Examples at Listjs.com works in IE7,8,9 (IE6 is not tested, should work)
- More documentation
- Misc bug fixes
- More documentation
- Only show 200 items at same time, huge speed increase
- Misc bug fixes
- Added asynchronous item adding
- Added asynchronous list indexing
- Improved (but incomplete) documentation
- Bugfixes and improved helper functions
- Show helper functions non-minified