Skip to end of metadata
Go to start of metadata

setSoftkeyIcon

Description

Sets an image object to display at the top left corner of the softkey. Useful for indicating a hard key that calls the same handler. Suggested image size is 5x5 pixels.


Basic Example: 

 

 

If you require the app library, you can use Digium's set of softkey icons. These image objects are created when the library is required.

  • app.images.softKeys.left (left arrow)
  • app.images.softKeys.right (right arrow)
  • app.images.softKeys.up (up arrow)
  • app.images.softKeys.down (down arrow)
  • app.images.softKeys.select (check mark)
  • app.images.softKeys.cancel (X)

Parameters

 

NameRequiredTypeDefaultDescription
keyNum
Yes
integer
 

Softkeys are labeled 1-4.

icon
Yes
widget
 

Instance of a image widget for display.

 

Examples

setSoftkeyIcon to set icons for the softkeys: Digium up arrow, Digium checkmark, custom icon

  1.  
  • No labels