Browse Source

docs : elaborate on option method. Fixes #48

pull/27/merge
David DeSandro 14 years ago
parent
commit
cf138e596b
  1. 17
      _posts/docs/2010-12-04-methods.mdown

17
_posts/docs/2010-12-04-methods.mdown

@ -91,7 +91,22 @@ Positions specified item elements in layout.
{% endhighlight %} {% endhighlight %}
Modifies options for plugin instance. Modifies options for plugin instance. Can be used to get and set options. Unlike passing options through `.isotope()`, using the `option` method will not trigger layout.
{% highlight javascript %}
// sets multiple options
.isotope( 'option', { layoutMode: 'fitRows', filter: '.my-filter' } )
// set single option
.isotope( 'option', 'layoutMode', 'straightDown' )
// get option
.isotope( 'option', 'layoutMode' )
// returns 'straightDown'
{% endhighlight %}
## reLayout ## reLayout

Loading…
Cancel
Save