class
SAPO.Widget.LiquidScroller
Horizontal Carousel for Liquid Layouts
requires SAPO
requires SAPO.Dom.Element
requires SAPO.Dom.Css
requires SAPO.Dom.Event
Defined in
Widget/LiquidScroller/0.1/lib.js
Constructor Summary
LiquidScroller
(Object
options)
Function Summary
goToItem
(Number
index)
scrolls to the requested item
goToPage
(Number
index)
scrolls to the requested page
init()
constructor alias
setStepWidth
(Number
index)
calculates and returns the reference width for an item in the LiquidScroller
updates the pagination, according to liquid width
Constructor Details
constructor LiquidScroller
LiquidScroller(Object
options)
Parameters:
options
-
String|DomElement container
- id or Reference for the HTML Liquid this._container -
String|DomElement viewport
- id or Reference for the HTML this._viewport this._container -
String|DomElement filmstrip
- id or Reference for the HTML Scrollable this._container -
[ Number|String|Element unit ]
- scroll unit in pixels, or HTML element to be used as reference
Function Details
function goToItem
goToItem(Number
index)
scrolls to the requested item
Parameters:
index
function goToPage
goToPage(Number
index)
scrolls to the requested page
Parameters:
index
function init
init()
constructor alias
function setStepWidth
setStepWidth(Number
index)
calculates and returns the reference width for an item in the LiquidScroller
Parameters:
index
function updateNavigator
updateNavigator()
updates the pagination, according to liquid width