You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library doesn't support re-laying-out while already initialized. I would recommend showing a spinner on the screen, calling disable() and deleting the Pig instance, and then initialize another new Pig() with updated imageData.
I am working on a page that loads the image list asynchronously from a REST server and wanted to initialize the pig element when the web page initializes and then set the data source when the data is available.
To achieve this it would be enough to add the following 2 methods to pig.js:
Seems not to complicated and IMHO would be a nice addition to this great project. Or is this just a complicated way of creating a new pig instance (but I had to remove the images already on the screen anyway).
Besides this, when working on this topic, I stumbled across a property of the pig class: visibleImages. I didn't find any references to this property.
Is this just a remnant of an older version? Or did I just not look thoroughly enough?
No description provided.
The text was updated successfully, but these errors were encountered: