Blog

Squiz Matrix matrixFilter Added to jquery.matrix.js

Sun, Nov. 9, 2008

Today I added a new plugin to the jQuery Matrix project called matrixFilter. This new plugin is used to filter or search a list of assets, and in real-time only show the matched assets, and hide the rest. This is similar functionality to what iTunes has for searching your music library. There is also an option, which is turned on by default, to show the total assets in the list, as well as the total matched assets. So, when you start typing, you will get something similar to: 10 of 200. This will change based on what you type.

Right now the search is case insensitive, but in the future I will add the option to make it case sensitive. Be sure to use specific selectors with the plugin or you might be less than satisfactory results. For example, if you use div for the selector, the plugin will count ALL divs on the page, so that count will be an incorrect number. But if you give all of the divs that are wrapping your assets a class, and set this within the selector, you will get a satisfactory result.

Hope everyone likes this new plugin, feel free to give me your comments and suggestions!

Nicholas Hubbard
Owner

Add Comment