Browse Source

docs : copy edits

pull/14/head
David DeSandro 14 years ago
parent
commit
eeb135ec5a
  1. 4
      _posts/docs/2010-12-03-options.mdown
  2. 2
      _posts/docs/2010-12-06-filtering.mdown
  3. 6
      _posts/docs/2010-12-10-adding-items.mdown

4
_posts/docs/2010-12-03-options.mdown

@ -72,7 +72,9 @@ The class applied to the container element.
<dd class="option-type">Selector</dd>
</dl>
Setting a filter with show item elements that match the selector, and hide elements that do not match.
Setting a filter with show item elements that match the selector, and hide elements that do not match. See [docs on filering](filtering.html) for more details.
[**See Demo: Filtering**](../demos/filtering.html)
### Values {#filter-values}

2
_posts/docs/2010-12-06-filtering.mdown

@ -7,7 +7,7 @@ related: filtering
---
Isotope can hide and show item elements via the `filter` option. The `filter` option accepts a jQuery selector. Items that match that selector will be shown. Items that do not match will be hidden.
Isotope can hide and show item elements via the [`filter`](options.html#filter) option. The `filter` option accepts a jQuery selector. Items that match that selector will be shown. Items that do not match will be hidden.
[**See Demo: Filtering**](../demos/filtering.html)

6
_posts/docs/2010-12-10-adding-items.mdown

@ -13,7 +13,7 @@ If your application dynamically adds new content, Isotope provides several metho
## addItems
The `addItems` method adds new content to an Isotope container. This applies the proper styles to the items so they can be positioned and any sorting data is retrieved. But that's it. The new content will _not_ be filtered, sorted, or positioned properly, nor will it be appended to the container element.
The [`addItems` method](methods.html#additems) adds new content to an Isotope container. This applies the proper styles to the items so they can be positioned and any sorting data is retrieved. But that's it. The new content will _not_ be filtered, sorted, or positioned properly, nor will it be appended to the container element.
{% highlight javascript %}
@ -24,7 +24,7 @@ $('#container').append( $newItems ).isotope({ 'addItems', $newItems });
## insert
More likely, you want to use the `insert` method, which does everything that `addItems` misses. `insert` will append the content to the container, filter the new content, sort all the content, then trigger a `reLayout` so all item elements are properly laid out.
More likely, you want to use the [`insert` method](methods.html#insert), which does everything that `addItems` misses. `insert` will append the content to the container, filter the new content, sort all the content, then trigger a `reLayout` so all item elements are properly laid out.
{% highlight javascript %}
@ -35,7 +35,7 @@ $('#container').isotope({ 'insert', $newItems });
## appended
The `appended` method is a convienence method triggers `addItems` on new content, then lays out _only the new content_ at the end of the layout. This method is useful if you know you only want to add new content to the end, and not have it processed with filtering or sorting. `appended` is the best method to use with Infinite Scroll.
The [`appended` method](methods.html#appended) is a convenience method triggers `addItems` on new content, then lays out _only the new content_ at the end of the layout. This method is useful if you know you only want to add new content to the end, and not have it processed with filtering or sorting. `appended` is the best method to use with Infinite Scroll.
[**See Demo: Infinite Scroll**](../demos/infinite-scroll.html).

Loading…
Cancel
Save