Security News
npm Updates Search Experience with New Objective Sorting Options
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
modal-slider-photos-and-videos
Advanced tools
npm i --save modal-slider-photos-and-videos
Config in the app.module.ts
import * as ionicGalleryModal from 'ionic-gallery-modal';
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
imports: [
//...
ionicGalleryModal.GalleryModalModule,
//...
],
providers: [
//...
{
provide: HAMMER_GESTURE_CONFIG,
useClass: ionicGalleryModal.GalleryModalHammerConfig,
},
//...
],
import { ModalController } from 'ionic-angular';
import { GalleryModal } from 'modal-slider-photos-and-videos';
constructor(
//...
public modalCtrl: ModalController,
//...
){}
Slider photos:
let modal = this.modalCtrl.create(GalleryModal, {
typeModal: "photo",
photos: array_photo,
initialSlide: currentIndex
});
modal.present();
Slider videos:
let modal = this.modalCtrl.create(GalleryModal, {
typeModal: "video",
videos: array_video,
initialSlide: currentIndex
});
modal.present();
Name | Type | Value | Description |
---|---|---|---|
typeModal | string | "photo" | when use slider for photos |
typeModal | string | "video" | when use slider for videos |
photos | array | [] | is array information of all photos |
videos | array | [] | is array information of all videos |
initialSlide | number | 0 | pass params is index of a photo or a video need show |
Name | Type | Value | Description |
---|---|---|---|
url | string | link of photo | |
avatar | string | link image avatar of user post this photo | |
name | string | name of user post this photo | |
title | string | title of this photo | |
date | string | date published this photo |
Example
{
url: "http://example.com/images/photo_1.jpg",
avatar: "http://example.com/avatar/david.jpg",
name: "David Beckham",
title: "Goal Goal!",
date: "3 months ago"
}
Name | Type | Value | Description |
---|---|---|---|
url | string | link local of video | |
poster | string | link of image show before play video | |
avatar | string | link image avatar of user post this video | |
name | string | name of user post this video | |
title | string | title of this video | |
date | string | date published this video |
Example
{
url: "http://abc.com/media/video.mp4",
poster: "http://example.com/poster/juventus.jpg",
avatar: "http://example.com/avatar/buffon.jpg",
name: "Buffon",
title: "Save save!",
date: "3 months ago"
}
FAQs
modal slider photos and video
The npm package modal-slider-photos-and-videos receives a total of 0 weekly downloads. As such, modal-slider-photos-and-videos popularity was classified as not popular.
We found that modal-slider-photos-and-videos 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
npm has a revamped search experience with new, more transparent sorting options—Relevance, Downloads, Dependents, and Publish Date.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.