germanysbestkeptsecret / Wookmark-jQuery

A jQuery plugin to create a dynamic, multi-column layout.
MIT License
2.63k stars 759 forks source link

V2.0 refreshWookmark #184

Closed ram-you closed 9 years ago

ram-you commented 9 years ago

Hi Sebastian, 1000 Bravos for the V2.0.

I think that $('#myElementContainer').wookmark(options) doesn't work anymore, use wookmark = new Wookmark('#myElementContainer'[, options ]) instead.

In the same logic use wookmark.layout(true) instead of $('#myElementContainer').trigger('refreshWookmark')

Am I right ?

Sebobo commented 9 years ago

Both should work fine. I want to support the old way too. I still need to work a bit on the documentation for this.

ram-you commented 9 years ago

:thumbsup:

A little confused when to use : wookmark.initItems(), wookmark.updateOptions(), wookmark.layout() , because in my App I have frequently to dynamically add and remove list items. Thanks.