Browse Source

docs : tweaks and some more to intro

pull/14/head
David DeSandro 14 years ago
parent
commit
e209ce0931
  1. 13
      _posts/docs/2010-12-02-getting-started.mdown
  2. 4
      _posts/docs/2010-12-10-adding-items.mdown
  3. 2
      _posts/pages/2011-01-01-5.yml

13
_posts/docs/2010-12-02-getting-started.mdown

@ -7,4 +7,15 @@ related: etc
--- ---
this is how you get started this is how you get started
Isotope requires jQuery 1.4.3 and greater.
{% highlight javascript %}
$('#container').isotope({
// options
itemSelector : '.item-class'
});
{% endhighlight %}

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

@ -9,6 +9,8 @@ related: methods
If your application dynamically adds new content, Isotope provides several methods to add items. If your application dynamically adds new content, Isotope provides several methods to add items.
[**See Demo: Adding items**](../demos/adding-items.html).
## addItems ## 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 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.
@ -35,3 +37,5 @@ $('#container').isotope({ 'insert', $newItems });
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 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.
[**See Demo: Infinite Scroll**](../demos/infinite-scroll.html).

2
_posts/pages/2011-01-01-5.yml

@ -2,6 +2,6 @@
title: Infinite Scroll Page 5 title: Infinite Scroll Page 5
category: pages category: pages
layout: inf-scroll-page layout: inf-scroll-page
page_position: 50 page_position: 80
infinite_scroll: true infinite_scroll: true
--- ---
Loading…
Cancel
Save