caretPosition([position])

Class: TextField. Method inherited from UIComponent.

Description:

Set or gets a position of caret in text editing components. Used in some text editing components only.

Parameters:

Name Type Description

[position]

number

Returns:

Returns this component if argument is provided, otherwise number value.

Type: this | number