export default {
// Enable inline mode
inline: false,
// Show the button on the top-right of the viewer
button: true,
// Show the navbar
navbar: true,
// Show the title
title: true,
// Show the toolbar
toolbar: true,
// Show the tooltip with image ratio (percentage) when zoom in or zoom out
tooltip: true,
// Enable to move the image
movable: true,
// Enable to zoom the image
zoomable: true,
// Enable to rotate the image
rotatable: true,
// Enable to scale the image
scalable: true,
// Enable CSS3 Transition for some special elements
transition: true,
// Enable to request fullscreen when play
fullscreen: true,
// The amount of time to delay between automatically cycling an image when playing.
interval: 5000,
// Enable keyboard support
keyboard: true,
// Enable a modal backdrop, specify `static` for a backdrop which doesn't close the modal on click
backdrop: true,
// Indicate if show a loading spinner when load image or not.
loading: true,
// Indicate if enable loop viewing or not.
loop: true,
// Min width of the viewer in inline mode
minWidth: 200,
// Min height of the viewer in inline mode
minHeight: 100,
// Define the ratio when zoom the image by wheeling mouse
zoomRatio: 0.1,
// Define the min ratio of the image when zoom out
minZoomRatio: 0.01,
// Define the max ratio of the image when zoom in
maxZoomRatio: 100,
// Define the CSS `z-index` value of viewer in modal mode.
zIndex: 2015,
// Define the CSS `z-index` value of viewer in inline mode.
zIndexInline: 0,
// Define where to get the original image URL for viewing
// Type: String (an image attribute) or Function (should return an image URL)
url: 'src',
// Define where to put the viewer in modal mode.
// Type: String | Element
container: 'body',
// Filter the images for viewing.
// Type: Function (return true if the image is viewable)
filter: null,
// Event shortcuts
ready: null,
show: null,
shown: null,
hide: null,
hidden: null,
view: null,
viewed: null,
};
|