jsbeans

jsbeans  1.0.0

jsbeans > jsbeans > jsbeans.Ticker
Search:
 
Filters

Class jsbeans.Ticker

jsbeans.Ticker is a news ticker with fading affect.

Constructor

jsbeans.Ticker ( id , [options] )
Parameters:
id <String> id of the news container.
[options] <JSON>
pause: <Integer>, // interval in seconds
fadeSpeed: <Integer>, // fading speed
fadeTo: <String>, // only "black" is valid, otherwise it fades to white

Methods

addItem

void addItem ( node )
Adds a new item that will be shown on ticker
Parameters:
node <DOM> the DOM containing the news
Returns: void

run

void run ( )
Starts showing news.
Returns: void

stop

void stop ( )
Stops animation. This method does NOT wait until the animation is complete, it just stops ticker.
Returns: void

toString

String toString ( )
A string containing information on this Ticker
Returns: String


Copyright © 2016 Francesco Mele. All rights reserved.