Skip to content

danielsogl/ionic-gallery-modal

 
 

Repository files navigation

npm

Small update

At the moment, I'm working on an update on this package. I want to fix a few more issues with it, so it's going to take a bit more than expected.. Stay tuned :)

Ionic 2 Gallery Modal

It consists of a modal that will help you make gallery preview modal.

Demo

demo-ionic-2-gallery-modal

Example

Installation

Install it using npm

npm install ionic-gallery-modal --save

and then, within your application module

import { GalleryModal } from 'ionic-gallery-modal';
import { ZoomableImage } from 'ionic-gallery-modal';

and add it to your declarations

declarations: [
  //...
  GalleryModal,
  ZoomableImage,
  //...
],

and to your entryComponents

entryComponents: [
  //...
  GalleryModal,
],

Usage

To open the module just use the Ionic 2 ModalController

import { ModalController } from 'ionic-angular';
import { GalleryModal } from 'ionic-gallery-modal';
let modal = this.modalCtrl.create(GalleryModal, {
  photos: photos,
  initialSlide: index
});
modal.present();

Options

The possible options for it are:

{
  photos: Array[{ url: string }],
  closeIcon: string,
  initialSlide: number,
}

Problems or suggestions

Let us know or submit a PR! And, please, don't hesitate to contribute. ❤️

Changelog

v0.1.0

  • Changed to work with Ionic 3.2
  • Fixed an issue that was causing an error when building ionic app with --prod flag on
  • Changed the whole building system for the plugin

v0.0.7

  • Changed to work with Ionic 2 RC-5
  • Made a temporary fix for orientationchange bug in ios
  • Fixed a problem that was causing apps to not build

Credits

Ciprian Mocanu - @nikini

About

Ionic 2 Gallery Modal (to show all your photos)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 54.7%
  • JavaScript 33.6%
  • HTML 5.9%
  • CSS 5.8%