Documentation

API / View

This method enables you to view images in a specific path.

Parameters

NameDescription
path Public file system path to the file to view.
paths Array of public file system paths to display.
onopen Fires after the dialog has been opened. Can be used to produce a custom throbber.

Example

// View the specified image
moxman.view({
path: '/files/images/image.jpg'
});

// View the specified images moxman.view({ paths: ['/files/images/image.jpg', '/files/images/otherimage.jpg'] });