TextButton

SignatureTabletWidgets. TextButton

A button for displaying clickable text on a tablet

Constructor

new TextButton(text, x, y, idopt, fontFaceopt, fontSizeopt)

Description:
  • Instantiate a Tablet Text Button

Source:
See:
Example
const new TextButton("OK", 20, 200)
Parameters:
Name Type Attributes Default Description
text string

Text to display on the button

x number

X position to draw the button

y number

Y position to draw the button

id text <optional>

ID of the button that will be returned when it is clicked. If not set one will attempt to be constructed from the button text but there is no guarantee it will be unique.

fontFace string <optional>
Arial

Font face for the text on the button. Defaults to 'Arial'

fontSize number <optional>
40

Size of the font for the text on the button. Defaults to 40.

Extends

  • DisplayWidget