namespace SAPO.Component.Lightbox

Constructor Summary
lightbox (Object o)

Constructor Details

constructor lightbox

lightbox(Object o)
Parameters:
o
  • String content - by default is HTML markup. if mode is either 'image' or 'video' this is an URI.
  • [ Array|IteratorMixin collection ] -
  • [ String mode ] - by default content is innerHTML'd. if mode is 'image' it is maximized on view. if mode is 'video' a flash player in embedded on view. if mode is 'frame' the content is the uri to display (width and height must be passed in this case).
  • [ Number width ] - pass this to force a width on the container. use negative to apply wDim - w. use float to apply a percentage of wDim.
  • [ Number height ] - pass this to force a height on the container. use negative to apply wDim - h. use float to apply a percentage of wDim.
  • [ String backgroundImageUri ] - translucent PNG image to use on IEs lt 9. by thefault the URI is '/Assets/Images/ComponentLightbox/black50.png'
  • [ UIManager uiManager ] -
  • [ Boolean preFetch ] - cache next and previous image
Authors:
jose.p.dias AT co.sapo.pt
Since:
February 2012 requires SAPO.Dom.Css requires SAPO.Dom.Event