class SAPO.Component.ProxyGallery
Authors:
jose.p.dias AT co.sapo.pt
Version:
0.1
Since:
February 2011
Defined in Component/ProxyGallery/0.1/lib.js

Constructor Summary
ProxyGallery (Object o)

Constructor Details

constructor ProxyGallery

ProxyGallery(Object o)
Parameters:
o
  • DomElement containerEl - element id
  • Object[] items - array of items with (at least) {String}uri, {Number[2]}dims
  • Number[2] viewportDims - dimensions of the viewport (visible area)
  • String layoutManager - one of ['horizontal', 'vertical']
  • Object layoutConfig - object with {Number}gap, {Number[2]}delta
  • [ Object buttons ] - object with DOM elements for prev and next buttons
  • [ Number maxClickTime ] - in ms. defaults to 100
  • [ Number minGestureLength ] - in px. defaults to 10
  • [ Boolean debug ] - if true, logging messages are printed to the console. defaults to false