How to use photoviewer - 2 common examples

To help you get started, we’ve selected a few photoviewer examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-matero / ng-matero / src / app / shared / components / easy-table / easy-table-cell.component.ts View on Github external
});
      });
    } else {
      this.str2arr(urlStr).forEach((url, index) => {
        imgs.push({
          src: url,
        });
      });

      options = {
        title: false,
        footToolbar: ['zoomIn', 'zoomOut', 'rotateRight', 'rotateLeft', 'actualSize'],
      };
    }

    const viewer = new PhotoViewer(imgs, options);
  }
}
github ng-matero / ng-matero / src / app / routes / media / gallery / gallery.component.ts View on Github external
preview(index: number) {
    const options: PhotoViewer.Options = {
      index,
    };

    const viewer = new PhotoViewer(this.images, options);
  }
}

photoviewer

A JS plugin to view images just like in Windows.

MIT
Latest version published 2 months ago

Package Health Score

73 / 100
Full package analysis

Popular photoviewer functions