TextInput

VerifoneControls. TextInput

A text input object

Constructor

new TextInput(id, x, y, optionsopt)

Description:
  • Instantiate a text input object

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

ID of the radio button object

x number

X position to draw the text input

y number

Y position to draw the text input

options object <optional>

Additional configuration options

Properties
Name Type Attributes Description
width number <optional>

Width of text input in pixels

height number <optional>

height of text input in pixels

value string <optional>

Set the value of the text input

font object <optional>

Font styles

border object <optional>

Border styles

background string <optional>

Background color

padding array <optional>

Padding

placeholder string <optional>

Placeholder text

allowedChars string <optional>

Characters allowed for input

minLength number <optional>

Minimum allowed number of characters

maxLength number <optional>

Maximum allowed number of characters

align string <optional>

Align text left, right, or center

Extends

  • DisplayWidget