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 SelectInputs
  
require('SelectInput').SelectInput;

Class Constructor

new SelectInput()

Creates a new SelectInput object.

Code Block
var selectObj = new SelectInput(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.

...