jquery-viewer
A jQuery plugin wrapper for Viewer.js.
Main
dist/├── jquery-viewer.js (UMD)├── jquery-viewer.min.js (UMD, compressed)├── jquery-viewer.common.js (CommonJS, default)└── jquery-viewer.esm.js (ES Module)
Getting started
Installation
npm install jquery-viewer jquery viewerjs
Include files:
<!-- jQuery is required --><!-- Viewer.js is required -->
Usage
Initialize with $.fn.viewer
method.
<!-- a block container is required -->
var $image = ; $image; // Get the Viewer.js instance after initializedvar viewer = $imagedata'viewer'; // View a list of images;
Options
See the available options of Viewer.js.
;
Methods
See the available methods of Viewer.js.
;
Events
See the available events of Viewer.js.
;
No conflict
If you have to use other plugin with the same namespace, just call the $.fn.viewer.noConflict
method to revert to it.
Browser support
It is the same as the browser support of Viewer.js. As a jQuery plugin, you also need to see the jQuery Browser Support.
Versioning
Maintained under the Semantic Versioning guidelines.