class SAPO.Widget.Banca
Displays press publication covers. Relies on SAPO services to get a JSON file of known format.
 depends on:
 - /SAPO/Communication/Syndication/0.1/new.js
 - /SAPO/Dom/Css/0.1/
 - /SAPO/Dom/Event/0.1/
 - /SAPO/Component/Gallery2/0.1/
 
Authors:
jose.p.dias AT co.sapo.pt
Version:
2.1
Since:
May 2012
Defined in Widget/Banca/2.1/lib.js

Constructor Summary
Banca (Object o)

Constructor Details

constructor Banca

Banca(Object o)
Parameters:
o
  • String|DOMElement container container which will get populated by the widget
  • [ String jsonURI ] publications endpoint prefix
  • [ String stand ] publications endpoint suffix *DEPRECATED*
  • [ String thumbGenURI ] URI to transform a regular cover into the desired dimensions
  • [ String clickURI ] URI where the user is transported to on cover click
  • [ Number[2] thumbDims ] conver maximum dimentions (used by thumbGenURI)
  • [ String prevLabel ] HTML markup to display as previous label
  • [ String nextLabel ] HTML markup to display as next label
  • [ String|DomElement prevElement ] dom element or its id
  • [ String|DomElement nextElement ] HTML markup to display as next label
  • [ String visibleItems ] number of publications to display per page
  • [ Function(widget, eventType, args) onUserEvent ] callback method to subscribe user initialted events