Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • the container parameter can now be
    • a CSS-based selector
    • a single-element jQuery object, or
    • a DOM element
  • the identification of orderable thumbnails, previously specified by the itemFinderFn parameter, is now specified through the selectors option (part of the options parameter)

The following sections discuss each of these changes.

Container

Instead of passing a string ID to fluid.createLightboxFromID(), you can pass an ID a selector to fluid.lightbox():

...

If you used to have...

Now you would have...

Code Block
javascript
javascript
var itemFn = function () {
    return jQuery(".orderable");
};
fluid.lightboxcreateLightbox("#gallery", itemFn);
Code Block
javascript
javascript
var opts = {
    selectors: {
        movables: ".orderable"
    }
};
fluid.lightbox("#gallery", opts);

...