Button

VerifoneControls. Button

A button for displaying clickable text on a tablet

Constructor

new Button(id, text, x, y, optionsopt)

Description:
  • Instantiate a Button

Source:
See:
Parameters:
Name Type Attributes Description
id number

ID of the button that will be returned when it is clicked

text string

Text to display on the button

x number

X position to draw the button

y number

Y position to draw the button

options object <optional>

Additional configuration options.

Properties
Name Type Attributes Default Description
width number <optional>
200

Width of button in pixesl

height number <optional>
100

height of button in pixels

border object <optional>

Border styles

background string <optional>

Background color (hex or RGB)

padding array <optional>

Padding

accessKey string <optional>

Map button to a key on the keypad

font object <optional>

Font styles

beep boolean <optional>
false

On press, emit a beep

Extends

  • DisplayWidget