#cp.ui.TextArea

UI Text Area.


#API Overview

Functions - API calls offered directly by the extension

Constructors - API calls which return an object, typically one that offers API methods

Fields - Variables which can only be accessed from an object returned by a constructor

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Functions

Signaturecp.ui.TextArea.matches(element) -> boolean
TypeFunction
DescriptionChecks to see if an element matches what we think it should be.
Parameters
  • element - An axuielementObject to check.
Returns
  • true if matches otherwise false
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/TextArea.lua line 21

#Constructors

Signaturecp.ui.TextArea(parent, uiFinder) -> TextArea
TypeConstructor
DescriptionCreates a new TextArea instance.
Parameters
  • parent - The parent object.
  • uiFinder - A function which will return the hs.axuielement when available.
Returns
  • A new TextArea object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/TextArea.lua line 9

#Fields

Signaturecp.ui.TextArea.value <cp.prop: string>
TypeField
DescriptionThe current value of the text field.
NotesNone
Sourcesrc/extensions/cp/ui/TextArea.lua line 34

#Methods

Signaturecp.ui.TextArea:append(moreText) -> string
TypeMethod
DescriptionAppends moreText to the end of the current value, returning the combined text value. If no text is currently set, moreText becomes the value.
Parameters
  • moreText - The text to add.
Returns
  • The combined string value.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/TextArea.lua line 55

Signaturecp.ui.TextArea:prepend(moreText) -> string
TypeMethod
DescriptionAppends moreText to the beginning of the current value, returning the combined text value. If no text is currently set, moreText becomes the value.
Parameters
  • moreText - The text to add.
Returns
  • The combined string value.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/ui/TextArea.lua line 70