diff --git a/_posts/docs/2010-12-04-methods.mdown b/_posts/docs/2010-12-04-methods.mdown index 62d6d38..c9048a5 100644 --- a/_posts/docs/2010-12-04-methods.mdown +++ b/_posts/docs/2010-12-04-methods.mdown @@ -91,7 +91,22 @@ Positions specified item elements in layout. {% 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