...
Code Block | ||
---|---|---|
| ||
fluid.lightbox.createLightboxFromId: function (containerId, options);
|
The Lightbox initialization function allows you to pass in a number of optional parameters to configure some aspects of the Lightbox, including a 'callback' function. The callback communicates changes in the ordering of images back to the server. In its "out-of-the-box" form, the Lightbox includes a default callback function that uses a form with hidden <input>
elements in the markup to record the indexes of the elements. For our example, we will disable the default callback by specifying an empty function:
...