You may set viewer options with new Viewer(image, options). If you want to change the global default options, You may use Viewer.setDefaults(options). Enable the modal backdrop, specify static for the backdrop that will not close the modal on click. Specify the visibility and the content of the title. Filter the images for viewing (should return true if the image is viewable, return false to ignore the image). Indicate if toggle the image size between its natural size and initial size when double click on the image or not. As there are some asynchronous processes when start the viewer, you should call a method only when it is available. If you have to use another viewer with the same namespace, call the Viewer.noConflict static method to revert to it.

Features

  • Supports 52 options
  • Supports 23 methods
  • Supports 17 events
  • Supports modal and inline modes
  • Cross-browser support
  • The cdnjs provides CDN support for Viewer.js's CSS and JavaScript

Project Samples

Project Activity

See All Activity >

Categories

Photo Management

License

MIT License

Follow Viewer.js

Viewer.js Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Viewer.js!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Photo Management Software

Registered

2021-09-21