Methods
-
<static> initSlideshow()
-
This method initiates slideshow
Example
var ImageViewer = caph.require('ui.base.widget.imageViewer');<br> var imageViewer = new ImageViewer(options);<br> imageViewer.initSlideshow();
-
setOption(option)
-
Sets this object's own properties with the given option.
Parameters:
Name Type Description option
Object A set of component's properties.
Example
var imageViewer = caph.stripe.ui.widget.imageViewer(); imageViewer.setOption({ 'position' : [100,100], 'size' : [300,200], 'dom' : { 'id' : 'base1' }, itemList:{ items : [{ url :'large/1.jpg', thumb:'thumb/1.jpg', title: 'Content 1', date:'03/07/2011' }] }, audioList:[{ "url" : audioFile1, "title": 'Tatoos', "artist": 'Samsung Artist 1', "album": "Json Derulo", }], callback:function(){//callback handle code} });