Implementing image slider with thumbs using ngx-swiper-wrapper

余生颓废 提交于 2019-12-24 14:54:14

问题


I'm trying to implement ngx-swiper-wrapper to build an image slider with thumbs similar to this:

https://idangero.us/swiper/demos/300-thumbs-gallery.html

Has anyone managed to do this? I can't see any good documentation on how to build all swiper sliders with this wrapper. Also, is the FlexLayoutModule that is used in the demo for ngx-swiper-wrapper a must or can it be implemented without?


回答1:


Here is an demo and example for you.

https://lukasz-galka.github.io/ngx-gallery-demo/

https://www.npmjs.com/package/ngx-gallery

npm install ngx-gallery --save

// app.module.ts
import { NgxGalleryModule } from 'ngx-gallery';
...
@NgModule({
    imports: [
        ...
        NgxGalleryModule
        ...
    ],
    ...
})
export class AppModule { }

<ngx-gallery [options]="galleryOptions" [images]="galleryImages"></ngx-gallery>

I have just added sample docs please visit that npm package and install.



来源:https://stackoverflow.com/questions/54569099/implementing-image-slider-with-thumbs-using-ngx-swiper-wrapper

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!