1.0.0-beta.26 • Published 4 years ago
ng-sirv-media-viewer v1.0.0-beta.26
Angular Sirv Media Viewer
Easy to use, highly customizable Angular Sirv Media Viewer library.
Copy and paste this script anywhere in your HTML, usually before </head>
<script src="https://scripts.sirv.com/sirvjs/v3/sirv.js"></script>install
npm install ng-sirv-media-viewerregister as plugin
import { SirvMediaViewerModule } from 'ng-sirv-media-viewer';
@NgModule({
declarations: [ ... ],
imports: [ SirvMediaViewerModule ],
providers: [...],
bootstrap: [ ... ]
})basic usage
<sirv-media-viewer
id='...'
data-src='...'
data-options="fullscreen.enable:false;"
[slides]="[
'https://demo.sirv.com/demo/snug/teal-b-throw.jpg',
'https://demo.sirv.com/demo/snug/teal.spin',
{
src: 'https://demo.sirv.com/demo/snug/unpacked.jpg',
type: 'image'
}
]"
></sirv-media-viewer>id- viewer iddata-src- using for*.viewfiles, overrides:slidesdata-options- viewer options[slides]- Array with slide sources. Sources can be String or Object. String can be just url link Object has additional props:id- Slide id Stringsrc- Source StringdataOptions- Local slide options Objecttype- Type of slide String. The available props are:spin,zoom,image,youtube,vimeo,video,htmldataThumbnailImage- Custom thumbnail image StringdataThumbnailHtml- Custom thumbnail html StringdataDisabled- Disable slide BooleandataSwipeDisabled- Disable slide swipe BooleandataHiddenSelector- Hide selector BooleandataPinned- Pinned selector String. The available props are:left,rightstaticImage- Static image Boolean.
1.0.0-beta.26
4 years ago
1.0.0-beta.25
4 years ago
1.0.0-beta.23
4 years ago
1.0.0-beta.21
4 years ago
1.0.0-beta.20
4 years ago
1.0.0-beta.19
4 years ago
1.0.0-beta.18
4 years ago
1.0.0-beta.16
4 years ago
1.0.0-beta.15
4 years ago
0.0.1
4 years ago
1.0.0
4 years ago