Text

VerifoneControls. Text

Text to be displayed on a tablet

Constructor

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

Description:
  • Instantiate a Text object

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

ID of the text object

text string

Text to display

x number

X position to draw the text

y number

Y position to draw the text

options object <optional>

Additional configuration options.

Properties
Name Type Attributes Default Description
width number <optional>

Width of text bounding box in pixesl

height number <optional>

height of text bounding in pixels

border object <optional>

Border styles

background string <optional>

Background color (hex or RGB)

padding array <optional>

Padding

align string <optional>

Align text left, right, or center

font object <optional>

Font styles

lineHeight number <optional>

Text line height

escape bool <optional>
true

If false allows for raw HTML content

style string <optional>
<nullable>

If set, will embed inline style

Extends

  • DisplayWidget