8.6 Released with 🥽 visionOS support and more!
Check it out
Represents the base class for all editable text views.

Summary ​

Constructors

constructor

Properties

autocapitalizationType
autocorrect
autofillType
blurEvent
editable
focusEvent
hint
keyboardType
maxLength
returnKeyType
textChangeEvent
updateTextTrigger
valueFormatter
171 properties inherited from TextBase
Click to expand

Methods

dismissSoftInput
setSelection
112 methods inherited from TextBase
Click to expand

Constructors ​

constructor ​

new EditableTextBase(): EditableTextBase

Properties ​

autocapitalizationType ​

autocapitalizationType: AutocapitalizationInputType
Gets or sets the autocapitalization type.

autocorrect ​

autocorrect: boolean
Enables or disables autocorrection.

autofillType ​

autofillType: string
Gets or sets the autofill type.

editable ​

editable: boolean
Gets or sets whether the instance is editable.

hint ​

hint: string
Gets or sets the placeholder text.

keyboardType ​

keyboardType: KeyboardInputType
Gets or sets the soft keyboard type.

maxLength ​

maxLength: number
Limits input to a certain number of characters.

returnKeyType ​

returnKeyType: ReturnKeyButtonType
Gets or sets the soft keyboard return key flavor.

updateTextTrigger ​

updateTextTrigger: UpdateTextTriggerType
Gets or sets a value indicating when the text property will be updated.

valueFormatter ​

valueFormatter: (value: string) => string

blurEvent ​

Static

focusEvent ​

Static

textChangeEvent ​

Static

Methods ​

dismissSoftInput ​

dismissSoftInput(): void
Hides the soft input method, ususally a soft keyboard.
Returns void

setSelection ​

setSelection(start: number, stop?: number): any
Set the selection anchor to start and the selection edge to stop
Parameter Default Description
start
number

stop
number

Returns any