TextField

Parent NativeDisplayObject
Library native.*
Revision Release 2024.3703
Keywords text input, text field, native text
See also native.newTextField()
native.newTextBox()

Overview

A native text field is a single-line input field for displaying text-based content. See native.newTextField() for more details.

Properties

(Inherits properties from NativeDisplayObject)

object.align

object.font

object.hasBackground

object.inputType

object.isFontSizeScaled

object.isSecure

object.placeholder

object.size

object.text

object.autocorrectionType

object.spellCheckingType

object.clearButtonMode

Methods

(Inherits methods from NativeDisplayObject)

object:resizeFontToFitHeight()

object:resizeHeightToFitFont()

object:setTextColor()

object:setSelection()

object:getSelection()

object:setReturnKey()