Go to Listjs.com and download tha latest version!

This is a release many have been waiting for! Beta 0.2.0 includes several large improvments and I will go through them one by one.
Plugins!
The biggest update in List.js 0.2.0 is the support for plugins. With plugin it gets much easier to make scripts that integrate with List.js. Read more »
Paging Plugin
The first plugin includes the most wanted feature in List.js history (haha). Paging! Read more about the paging plugin »
Better options for initization of empty lists
A new option for initiating empty lists have been added. Now you can use a html-string in the item options. Example shown here:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
Notice: this do not work with <tr>.
New initization options
- page (int, default: 200) have replaced
maxVisibleItemsCountand represents how many items that should be visible at the same time. - i (int, default: 0) defines which item should be the first visble.
- plugins (array, default: undefined) defines which plugins this instance of the List should use. Read more about plugins »
New properties
- visibleItems (array) Returns the currently visible items.
- matchingItems (array) Returns the items matching the currently active searches and filters, it could there by contains non visible items. If no active searches and filters does
.matchingItemscontain same items as.items - searched (boolean) Returns
trueif there are a active search in the list. - filtered (boolean) Returns
trueif there are a active filter in the list. - plugins (object) Returns the plugins that could be initiated (to interact with active plugins use
listObj.pluginName).
New methods
- Replaced
.addAsync(items)with.add(items, callback). - show()
Shows
pagenumber of items fromi. Use for paging etc.
1 2 3 4 5 6 7 8 9 10 | |
- update()
Updates the current state of the list. Meaning that if you for instance hides some items with
itemObj.hide()method then you have to calllistObj.update()if you want the paging to update. - on(event, callback)
Executecallbackwhen list have been updated (triggered byupdate(), which is used by a lot of methods).
New Item methods
- matching() Returns true if the item match the current filter and searches. Visible items always matches, but matching items are not always visible.
- visible() Returns boolean. True if the item is visible. Visible items always matches, but matching items are not always visible.
Various
- Fixed IE7 bug in helper
hasClass(),addClass()andremoveClass(). - Fix searching with null and undefined values + using
searchString = 0
That was it! Pretty exciting right? Looking forward do see some awesome plugins!
Go to Listjs.com and download tha latest version!
