kombai / freewall

Freewall is a cross-browser and responsive jQuery plugin to help you create grid, image and masonry layouts for desktop, mobile, and tablet...
MIT License
1.85k stars 375 forks source link

Can you filter the tiles based on text in the tile? #129

Open iisfaq opened 10 years ago

iisfaq commented 10 years ago

I am looking for an example of how to filter the tiles based on text within the tile.

Chris

kombai commented 10 years ago

Freewall used jQuery filter method:

http://api.jquery.com/filter/

so, for filter the text you must using the filter by function:

wall.reset({
 filter: function(index) { 
   console.log(this)
 }
});