Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Require Extended Library: 

Code Block
var app = require('app');
app.init(); //app must be required and initialized somewhere before creating TextCyclers
  
require('TextCycler').TextCycler;

Class Constructor

new TextCycler

Creates a new TextCycler object.

Code Block
 var cyclerObj = new TextCycler(parameters);

Initialization Parameters

...

This extended class is not a child of base widget, so it cannot be added directly to the screen. Access the textWidget property to add or remove it from the screen. This extended class requires the  'app' library , and it must be initialized with an init function. 

Methods

Name 

Description 

setValue

Sets the value of the object to one of the possible options

takeFocus

Gives the selected widget keyboard focus. Calling this method triggers the object's onFocus handler to be called, which must return true to take focus.

...