To learn more about using JavaScript in LeanFT, see Setting up and working with the JavaScript SDK.
For JavaScript code samples, see Code Samples - JavaScript.

FieldTO

TerminalEmulators. FieldTO

FieldTO

Constructor

new FieldTO()

A terminal emulator field that fully supports HLLAPI.

Methods

attachedText() → {Promise.<string>}

The text attached to the terminal emulator field.
Returns:
a promise this is fulfilled with the text attached to the terminal emulator field.
Type
Promise.<string>

id() → {Promise.<int>}

Returns the terminal emulator field ID.
Returns:
the object's terminal emulator field ID.
Type
Promise.<int>

isNumeric() → {Promise.<bool>}

The Numeric attribute of the terminal emulator field.
Returns:
a promise that is fulfilled with an indication of whether the field is numeric or not.
Type
Promise.<bool>

isProtected() → {Promise.<bool>}

The Protected attribute of the terminal emulator field.
Returns:
a promise that is fulfilled with an indication of whether the field is protected or not.
Type
Promise.<bool>

isVisible() → {Promise.<bool>}

The Visible attribute of the terminal emulator field.
Returns:
a promise that is fulfilled with an indication of whether the field is visible or not.
Type
Promise.<bool>

length() → {Promise.<int>}

Returns the terminal emulator field length.
Returns:
the object's terminal emulator field length.
Type
Promise.<int>

setCursor(offsetopt) → {Promise.<void>}

Places the cursor in the specified position within the field.
Parameters:
Name Type Attributes Description
offset Number <optional>
If a number is passed, it will set the position in the field.
Returns:
a promise that is fulfilled when the setCursor operation ends.
Type
Promise.<void>

setSecure(codedString) → {Promise.<void>}

Inserts text into a hidden (invisible) field.
Parameters:
Name Type Description
codedString String If a string is passed, it will copy the coded string into the field.
Returns:
a promise that is fulfilled when the setSecure operation ends.
Type
Promise.<void>

setText(Text, offsetopt) → {Promise.<void>}

Inserts text into an unprotected field.
Parameters:
Name Type Attributes Description
Text String that is inserted in the field.
offset Number <optional>
If a number is passed, it will copy the string to that position in the field.
Returns:
a promise that is fulfilled when the setText operation ends.
Type
Promise.<void>

startPosition() → {Promise.<Object>}

The terminal emulator field's start column and start row properties.
Returns:
a promise that is fulfilled with the object's startPosition.
Type
Promise.<Object>

text() → {Promise.<string>}

The terminal emulator field text.
Returns:
a promise this is fulfilled with the terminal emulator text.
Type
Promise.<string>