Versions Compared

Key

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

...

Note

Desk Phone API features described in this section are deprecated and supported only on the following models: D40, d45, d50, d60, d62, d65, d70

Creates a text entry widget that can be used to receive input via the phone's number pad. This widget manages the softkeys themselves; therefore, you are advised not to change them programmatically.

...

Constructs a new text Input Object.

Code Block
var inputObj = new Input(x, y, widght, height);

Initialization Parameters

Name

Required

Type

Default

Description

x

Yes

integer

x coordinate value for top left corner.

height

Yes

integer

Height in pixels.

y

Yes

integer

y coordinate value for top left corner.

width

Yes

integer

Width in pixels.

This Class inherits methods and properties from the Widget Base Class. See  Widget Base Class  for more information about setting your Object's x, y, w, and h properties or adding children to it.

Methods

Name 

Description 

cycleModes

Sets up a softkey that cycles through a set of modes. Can be any of "normal", "email", "ip", or "numeric".

replace

Replaces a range of text from the input widget with another string.

toString

Returns the value of the input (same as the value property).

...