Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ionic-modal-slider
Advanced tools
Readme
It consists of a modal that will help you make gallery preview modal. Last tested with Ionic 3.6.0
Install it using npm
npm install ionic-modal-slider --save
and then, within your application module
import * as ionicGalleryModal from 'ionic-modal-slider';
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
and add the GalleryModalModule
to your imports
imports: [
//...
ionicGalleryModal.GalleryModalModule,
//...
],
and to your providers
providers: [
//...
{
provide: HAMMER_GESTURE_CONFIG,
useClass: ionicGalleryModal.GalleryModalHammerConfig,
},
//...
],
To open the module just use the Ionic ModalController
import { ModalController } from 'ionic-angular';
import { GalleryModal } from 'ionic-modal-slider';
let modal = this.modalCtrl.create(GalleryModal, {
photos: photos,
initialSlide: index,
onDissmiss: () => {
alert('Event on dismiss modal');
}
});
modal.present();
The possible options for it are:
{
photos: Array[],
initialSlide: number,
onDissmiss: () => {
alert('Event on dismiss modal');
}
}
Array = [{
type: 'photo',
url: 'https://images.pexels.com/photos/207171/pexels-photo-207171.jpeg?w=1260&h=750&auto=compress&cs=tinysrgb',
title: 'Lorem ipsum',
date: '11/11/2011',
listing: 'Hotels',
user: 'John',
toListingPageID: '11',
eventTapOnTitle: 'gotoListing',
avatarUrl: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRlNQ2yyZICBI_pcqc_KxT55FYvlpE8TtOKTlVuNuVyjbr1BSwLhw'
}, {
type: 'video',
url: 'https://www.youtube.com/embed/60ItHLz5WEA',
title: 'lorem ipsum dolor sit amet',
date: '11/11/2011',
listing: 'Hotels',
user: 'John',
toListingPageID: '12',
eventTapOnTitle: 'gotoListing',
avatarUrl: 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRlNQ2yyZICBI_pcqc_KxT55FYvlpE8TtOKTlVuNuVyjbr1BSwLhw'
}];
FAQs
Ionic Modal Slider (to preview photos)
The npm package ionic-modal-slider receives a total of 0 weekly downloads. As such, ionic-modal-slider popularity was classified as not popular.
We found that ionic-modal-slider demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.