class
SAPO.Widget
requires SAPO
SAPO Widget class : all widgets should be subclasses of this one
Defined in
Widget/lib.js
Nested Class Summary
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/
requires SAPO.Dom.Event requires SAPO.Dom.Element requires SAPO.Communication.JsonP
requires SAPO.Utility.Array requires SAPO.Dom.Selector requires SAPO.Dom.Event requires SAPO.Dom.Element requires SAPO.Dom.Css requires SAPO.Effects.Core
Horizontal Carousel for Liquid Layouts
requires SAPO
requires SAPO.Dom.Element
requires SAPO.Dom.Css
requires SAPO.Dom.Event
Widget to show the latest headlines on a SimpleSlide
requires SAPO.Widget.SimpleSlide 2.1
requires SAPO.Communication.Syndication
requires SAPO.Widget.SimpleSlide 2.1
requires SAPO.Communication.Syndication
Widget to show the latest headlines on a SimpleSlide
requires SAPO.Widget.SimpleSlide 1.0
requires SAPO.Communication.Syndication
requires SAPO.Widget.SimpleSlide 1.0
requires SAPO.Communication.Syndication
Allows to put a share widget on the known services like links sapo, delicious, google bookmarks etc, pdf export and send link by email
requires SAPO.Communication.Syndication requires SAPO.Utility.I18n requires SAPO.Utility.Array requires SAPO.Dom.Element requires SAPO.Dom.Event requires SAPO.Dom.Css requires lang.js (optional)
requires SAPO.Dom.Selector requires SAPO.Dom.Event requires SAPO.Dom.Css
Timeline for SAPO Familia
requires SAPO.Dom.Css requires SAPO.Dom.Element requires SAPO.Dom.Event
requires Prototype
requires SAPO.Utility.String
requires SAPO.Utility.Url
requires SAPO.Communication.Syndication
Function Summary
DOMElement
currentScriptElement()
returns the currentScriptElement;
returns a target container, if its not supplied or its a script tag appends a given object before the current scripttag
Constructor Details
constructor Carousel
Carousel(Object
options)
Parameters:
options
-
required String targetId
: The top element that defines the Carousel -
[ String slideshow ]
: The pre-definition behaviour of the widget -
[ Boolean hasStepControl ]
: Navigation Next/Previous between Pages -
[ Boolean hasPageControl ]
: Arbitrary Nagitation to any page, -
[ Boolean hasPlayControl ]
: Controll for start and stoping auto-transition -
[ Boolean hasAnchor ]
: Reads and Sets last operation by user using an url anchor -
[ Integer page ]
: To for the widget to start always on a specific page -
[ Boolean loop ]
: On page end next trasition goes to the first page -
[ Boolean buildDom ]
: Read the Dom from the Html, or Build It -
[ CssSelector viewPortClass ]
: Class Selector for ViewPort ex: '.mediaContent', -
[ CssSelector pageClass ]
: Class Selector for Pages -
[ CssSelector prevButtonClass ]
: Class Selector for Previous Button -
[ CssSelector nextButtonClass ]
: Class Selector for Next Button -
[ CssSelector pageControllerClass ]
: Class Selector for Page Controller -
[ CssSelector playStopClass ]
: Class Selector for Auto-Transition Button -
[ Function createContent ]
: In Case BuildDom is true you need to pass a function that returns a Json Structure with the Dom Elements -
[ Boolean loadCSS ]
: Load dynamically a css -
[ String cssUri ]
: Uri for the css -
[ Boolean play ]
: Set the wdiget to automatic transitions -
[ Integer delay ]
: The time in seconds between auto-transitions -
[ Integer stopPlayMouseOver ]
: Stop the auto-transition when the mouse is over the page -
[ JsonObject effect ]
: Defines the type of effect for the transition -
[ Function beforeUserEvent ]
: Function executed before a Transition -
[ Function afterUserEvent ]
: Function executed after a Transition -
[ Function afterUserEvent ]
: Function executed after a Transition -
[ Boolean debug ]
: Acitvate the debug, that prints messages to the console.
constructor CarouselTouch
CarouselTouch(Object
options)
Parameters:
options
-
required String targetId
: The top element that defines the Carousel -
[ String slideshow ]
: The pre-definition behaviour of the widget -
[ Boolean hasStepControl ]
: Navigation Next/Previous between Pages -
[ Boolean hasPageControl ]
: Arbitrary Nagitation to any page, -
[ Boolean hasPlayControl ]
: Controll for start and stoping auto-transition -
[ Boolean hasAnchor ]
: Reads and Sets last operation by user using an url anchor -
[ Integer page ]
: To for the widget to start always on a specific page -
[ Boolean loop ]
: On page end next trasition goes to the first page -
[ Boolean buildDom ]
: Read the Dom from the Html, or Build It -
[ CssSelector viewPortClass ]
: Class Selector for ViewPort ex: '.mediaContent', -
[ CssSelector pageClass ]
: Class Selector for Pages -
[ CssSelector prevButtonClass ]
: Class Selector for Previous Button -
[ CssSelector nextButtonClass ]
: Class Selector for Next Button -
[ CssSelector pageControllerClass ]
: Class Selector for Page Controller -
[ CssSelector playStopClass ]
: Class Selector for Auto-Transition Button -
[ Function createContent ]
: In Case BuildDom is true you need to pass a function that returns a Json Structure with the Dom Elements -
[ Boolean loadCSS ]
: Load dynamically a css -
[ String cssUri ]
: Uri for the css -
[ Boolean play ]
: Set the wdiget to automatic transitions -
[ Integer delay ]
: The time in seconds between auto-transitions -
[ Integer stopPlayMouseOver ]
: Stop the auto-transition when the mouse is over the page -
[ JsonObject effect ]
: Defines the type of effect for the transition -
[ Function beforeUserEvent ]
: Function executed before a Transition -
[ Function afterUserEvent ]
: Function executed after a Transition -
[ Function afterUserEvent ]
: Function executed after a Transition -
[ Boolean debug ]
: Acitvate the debug, that prints messages to the console.
Function Details
function currentScriptElement
DOMElement
currentScriptElement()
returns the currentScriptElement;
function getTarget
DOMElement
getTarget(DOMElement String
target, [DOMElement
obj])
returns a target container, if its not supplied or its a script tag appends a given object before the current scripttag
Parameters:
target
[obj]