From c24685a74ac4ef3bac59d59c4c243066ceaf5c9a Mon Sep 17 00:00:00 2001 From: David DeSandro Date: Wed, 3 Aug 2011 07:46:22 -0400 Subject: [PATCH] docs : filtering : itemize selectors; fixes #82 --- _posts/docs/2010-12-06-filtering.mdown | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_posts/docs/2010-12-06-filtering.mdown b/_posts/docs/2010-12-06-filtering.mdown index 80964df..1e64593 100644 --- a/_posts/docs/2010-12-06-filtering.mdown +++ b/_posts/docs/2010-12-06-filtering.mdown @@ -44,7 +44,11 @@ $('#container').isotope({ filter: '.metal' }); {% endhighlight %} -Filtering selectors work just as expected. `.alkali, .alkaline-earth` will show both `.alkali` AND ` .alkaline-earth` items, and hide all others. `.metal.transition` will show elements that have both `.metal` and `.transition` classes. `.metal:not(.transition)` will show `.metal` item elements that are not `.transition`. +The `filter` option uses a [jQuery selector](http://api.jquery.com/category/selectors/) to show item elements that match a selector, and hide all others that do not. For example: + ++ `.alkali, .alkaline-earth` will show `.alkali` AND ` .alkaline-earth` item elements. ++ `.metal.transition` will show item elements that have BOTH `.metal` and `.transition` classes. ++ `.metal:not(.transition)` will show `.metal` item elements that are NOT `.transition`. ## Creating interactive buttons